git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsocket: Avoid an unnecessary else branch
[sfrench/samba-autobuild/.git]
/
source4
/
lib
/
socket
/
socket_ip.c
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);
}