git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5cf8b9
)
Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphane...
author
Jeremy Allison
<jra@samba.org>
Wed, 13 Aug 2008 23:45:34 +0000
(16:45 -0700)
committer
Michael Adam
<obnox@samba.org>
Thu, 14 Aug 2008 09:22:47 +0000
(11:22 +0200)
If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0.
Jeremy.
(This used to be commit
c65726d418601cdc86202c0371615e4f7f3d843c
)
source3/smbd/server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/server.c
b/source3/smbd/server.c
index 0d855f876fc87fbd28545bcd37fc1636c12a02df..53116f3d98ea016173d0b28c8e49d2fef3df5e33 100644
(file)
--- a/
source3/smbd/server.c
+++ b/
source3/smbd/server.c
@@
-469,7
+469,8
@@
static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_
char *sock_tok;
const char *sock_ptr;
- if (strequal(sock_addr, "0.0.0.0") ||
+ if (sock_addr[0] == '\0' ||
+ strequal(sock_addr, "0.0.0.0") ||
strequal(sock_addr, "::")) {
#if HAVE_IPV6
sock_addr = "::,0.0.0.0";