Skip to content
Snippets Groups Projects
Commit aa4bfb14 authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

Terminate buffer with NULL

The bug has been found by Coverity scan. (CWE-170)
parent 27572690
No related branches found
No related tags found
No related merge requests found
......@@ -610,6 +610,7 @@ resetting counter\n");
client_i->fd);
memset (buffer, 0, sizeof (buffer));
res = recv (client_i->fd, buffer, 1024, 0);
buffer[1024] = '\0';
if (res <= 0) {
fanout_debug (2, "client socket disconnected\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment