summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-08-13 16:45:34 -0700
committerMichael Adam <obnox@samba.org>2008-08-14 11:22:47 +0200
commit0595ecb3a6c1719a12f443b40650aaf642617b00 (patch)
tree531d973f5843ca24fd707a11ab70cbac2bfbc2c4
parenta5cf8b9fb5711dce8baf509e27396269e711dd07 (diff)
downloadsamba-0595ecb3a6c1719a12f443b40650aaf642617b00.tar.gz
samba-0595ecb3a6c1719a12f443b40650aaf642617b00.tar.bz2
samba-0595ecb3a6c1719a12f443b40650aaf642617b00.zip
Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process is orphaned if socket address parameter is invalid.
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)
-rw-r--r--source3/smbd/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 0d855f876f..53116f3d98 100644
--- 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";