summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-10 15:04:29 +0000
committerGerald Carter <jerry@samba.org>2003-03-10 15:04:29 +0000
commitc44e39065c342eaf9efb7a91499791f157433a18 (patch)
tree1d6275591dd618be9decb063ab831a102a3d9125 /source3
parent3b4bc027f394f6dc53444ba6739a579548fae8e0 (diff)
downloadsamba-c44e39065c342eaf9efb7a91499791f157433a18.tar.gz
samba-c44e39065c342eaf9efb7a91499791f157433a18.tar.bz2
samba-c44e39065c342eaf9efb7a91499791f157433a18.zip
check a pointer before dereferencing it; not sure why userdata == NULL though
(This used to be commit 944752024ba6ab762b12c29ee867e37401dac12b)
Diffstat (limited to 'source3')
-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 f27f42297f..c363ed0d34 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" );
}