loc_bad_alloc

This commit is contained in:
Michael Davidsaver
2023-03-28 09:41:35 -07:00
parent 46fe3f921b
commit d692d7da2c
7 changed files with 50 additions and 8 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ ServerConn::ServerConn(ServIface* iface, evutil_socket_t sock, struct sockaddr *
assert(M.good() && H.good());
if(evbuffer_add(tx, buf.data(), M.save()-buf.data()))
throw std::bad_alloc();
throw BAD_ALLOC();
statTx += M.save()-buf.data();
}