X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=source4%2Flib%2Fsocket%2Fsocket_ip.c;fp=source4%2Flib%2Fsocket%2Fsocket_ip.c;h=e0aa5da07cb8f56e0755b1c76817fe654054d691;hp=87b7bf4911d1171b96278cde61ecffaea553494a;hb=36bb685abde872f43c3e23150119c3af91dea569;hpb=46148e657f5d53b0d83dbcead9a8b8d0bd0baf21 diff --git a/source4/lib/socket/socket_ip.c b/source4/lib/socket/socket_ip.c index 87b7bf4911d..e0aa5da07cb 100644 --- a/source4/lib/socket/socket_ip.c +++ b/source4/lib/socket/socket_ip.c @@ -316,7 +316,8 @@ static NTSTATUS ipv4_recvfrom(struct socket_context *sock, void *buf, if (gotlen == 0) { talloc_free(src); return NT_STATUS_END_OF_FILE; - } else if (gotlen == -1) { + } + if (gotlen == -1) { talloc_free(src); return map_nt_error_from_unix_common(errno); }