1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 21:43:13 +02:00

Change (or delete) old sendto_ops() calls. Function is now gone.

This commit is contained in:
Bram Matthys
2021-09-23 19:14:10 +02:00
parent e36c85e4ce
commit b94707a51b
10 changed files with 37 additions and 69 deletions
+6 -2
View File
@@ -1123,8 +1123,12 @@ int websocket_create_packet(int opcode, char **buf, int *len)
if (bytes_in_sendbuf + bytes_single_frame > sizeof(sendbuf))
{
/* Overflow. This should never happen. */
sendto_ops("[websocket] [BUG] Overflow prevented: %d + %d > %d",
bytes_in_sendbuf, bytes_single_frame, (int)sizeof(sendbuf));
unreal_log(ULOG_WARNING, "websocket", "BUG_WEBSOCKET_OVERFLOW", NULL,
"[BUG] [websocket] Overflow prevented in websocket_create_packet(): "
"$bytes_in_sendbuf + $bytes_single_frame > $sendbuf_size",
log_data_integer("bytes_in_sendbuf", bytes_in_sendbuf),
log_data_integer("bytes_single_frame", bytes_single_frame),
log_data_integer("sendbuf_size", sizeof(sendbuf)));
return -1;
}