Commit 28ac595c authored by Pekka Pessi's avatar Pekka Pessi

tport_type_tcp.c: check peek return value

MeeGo Coverity issue CID#7589
parent 3ee45f1e
......@@ -270,6 +270,8 @@ int tport_recv_stream(tport_t *self)
size_t i;
n = su_recv(self->tp_socket, crlf, N, MSG_PEEK);
if (n <= 0)
return (int)n;
i = ws_span(crlf, n);
if (i == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment