git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46148e6
)
libsocket: Avoid an unnecessary else branch
author
Volker Lendecke
<vl@samba.org>
Sun, 4 Feb 2018 15:13:43 +0000
(15:13 +0000)
committer
Ralph Boehme
<slow@samba.org>
Tue, 13 Feb 2018 20:07:17 +0000
(21:07 +0100)
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
source4/lib/socket/socket_ip.c
patch
|
blob
|
history
diff --git
a/source4/lib/socket/socket_ip.c
b/source4/lib/socket/socket_ip.c
index 87b7bf4911d1171b96278cde61ecffaea553494a..e0aa5da07cb8f56e0755b1c76817fe654054d691 100644
(file)
--- 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);
}