summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-02-04 15:13:43 +0000
committerRalph Boehme <slow@samba.org>2018-02-13 21:07:17 +0100
commit36bb685abde872f43c3e23150119c3af91dea569 (patch)
tree4853229e6d758c7429a442cc6c4b76a5a94a5ded /source4/lib
parent46148e657f5d53b0d83dbcead9a8b8d0bd0baf21 (diff)
downloadsamba-36bb685abde872f43c3e23150119c3af91dea569.tar.gz
libsocket: Avoid an unnecessary else branch
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Feb 13 21:07:17 CET 2018 on sn-devel-144
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/socket_ip.c3
1 files changed, 2 insertions, 1 deletions
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);
}