git.samba.org
/
amitay
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3-util: Add a get_remote_hostname() function.
[amitay/samba.git]
/
source3
/
lib
/
sock_exec.c
diff --git
a/source3/lib/sock_exec.c
b/source3/lib/sock_exec.c
index 278a174663aedc63b3607e7131f30956cd01099b..2333d7c73968ed7014ccb73def0511eef67cf442 100644
(file)
--- a/
source3/lib/sock_exec.c
+++ b/
source3/lib/sock_exec.c
@@
-48,7
+48,7
@@
static int socketpair_tcp(int fd[2])
#endif
sock2.sin_family = PF_INET;
-
bind(listener, (struct sockaddr *)&sock2, sizeof(sock2))
;
+
if (bind(listener, (struct sockaddr *)&sock2, sizeof(sock2)) != 0) goto failed
;
if (listen(listener, 1) != 0) goto failed;