summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-10 15:05:06 +0000
committerGerald Carter <jerry@samba.org>2003-03-10 15:05:06 +0000
commit683c17ac0dfce64e7cfcafbc640b18ea4610f021 (patch)
tree3217c8667b638ae7cbd072f4546c474c8bcb0389
parent8cad904f385dfe25e6dffe39a773641d02ed2776 (diff)
downloadsamba-683c17ac0dfce64e7cfcafbc640b18ea4610f021.tar.gz
samba-683c17ac0dfce64e7cfcafbc640b18ea4610f021.tar.bz2
samba-683c17ac0dfce64e7cfcafbc640b18ea4610f021.zip
check a pointer before dereferencing it; not sure why userdata == NULL though
(This used to be commit 6fca29ddcdb111af24ee051b555ab4eec8cadd1d)
-rw-r--r--source3/nmbd/nmbd_browsesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_browsesync.c b/source3/nmbd/nmbd_browsesync.c
index 84c6f43f57..5914ea9637 100644
--- a/source3/nmbd/nmbd_browsesync.c
+++ b/source3/nmbd/nmbd_browsesync.c
@@ -258,7 +258,7 @@ static void domain_master_node_status_fail(struct subnet_record *subrec,
{
dbgtext( "domain_master_node_status_fail:\n" );
dbgtext( "Doing a node status request to the domain master browser\n" );
- dbgtext( "for workgroup %s ", userdata->data );
+ dbgtext( "for workgroup %s ", userdata ? userdata->data : "NULL" );
dbgtext( "at IP %s failed.\n", inet_ntoa(rrec->packet->ip) );
dbgtext( "Cannot sync browser lists.\n" );
}