diff options
author | Gerald Carter <jerry@samba.org> | 2003-08-27 15:07:46 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-08-27 15:07:46 +0000 |
commit | 4561b811df8b858fd7fbedeb534aa715d66a9005 (patch) | |
tree | efc55a882693cfd19117873bdd30b27ecb457640 /source3 | |
parent | cd8c082b797a5a11cd7d935f564a261def71bcaf (diff) | |
download | samba-4561b811df8b858fd7fbedeb534aa715d66a9005.tar.gz samba-4561b811df8b858fd7fbedeb534aa715d66a9005.tar.bz2 samba-4561b811df8b858fd7fbedeb534aa715d66a9005.zip |
fix segfault on empty wins server name registration reply
(This used to be commit 743560284cebd686be1094ce1d657e6d06c291b0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd_winsserver.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index 1abff5d5e2..484588c662 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/nmbd/nmbd_winsserver.c @@ -859,8 +859,10 @@ already exists in WINS as a GROUP name.\n", nmb_namestr(question) )); * reject without doing the query - we know we will reject it. */ - pull_ascii_nstring(name, namerec->name.name); - if((namerec != NULL) && (is_myname(name)) ) { + if ( namerec != NULL ) + pull_ascii_nstring(name, namerec->name.name); + + if( is_myname(name) ) { if(!ismyip(from_ip)) { DEBUG(3,("wins_process_name_registration_request: Attempt to register name %s. Name \ is one of our (WINS server) names. Denying registration.\n", nmb_namestr(question) )); |