diff options
author | Gerald Carter <jerry@samba.org> | 2004-11-11 17:40:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:13 -0500 |
commit | a4fab4d51a1c201810414a5b21b9d7bec4442646 (patch) | |
tree | 2e3de0cc0e84198998951d02118c1d4c8da234d4 /source3 | |
parent | 7f0f846c2667d58973f0d6cd5ccb5adb4b77dd42 (diff) | |
download | samba-a4fab4d51a1c201810414a5b21b9d7bec4442646.tar.gz samba-a4fab4d51a1c201810414a5b21b9d7bec4442646.tar.bz2 samba-a4fab4d51a1c201810414a5b21b9d7bec4442646.zip |
r3682: fix seg fault in lanman printing code caused by uninitialized variable
(This used to be commit c52e663c4a32b975796383834b2c04796daf8f29)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/lanman.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 610ee45120..e7aa05b54a 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2267,6 +2267,12 @@ static BOOL api_PrintJobInfo(connection_struct *conn,uint16 vuid,char *param,cha return False; *rparam_len = 4; *rparam = REALLOC(*rparam,*rparam_len); + + if ( (snum = lp_servicenumber(sharename)) == -1 ) { + DEBUG(0,("api_PrintJobInfo: unable to get service number from sharename [%s]\n", + sharename)); + return False; + } *rdata_len = 0; |