summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-22 08:27:48 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-22 08:27:48 +0000
commit14251aab2ec00aa7f3e6a6e791e78732cb5a9eda (patch)
tree48b9b86c732f4002b904923a922fd74238dbd58a
parentab0ecc39d688f16b9692fe90b991f0b89287070a (diff)
downloadsamba-14251aab2ec00aa7f3e6a6e791e78732cb5a9eda.tar.gz
samba-14251aab2ec00aa7f3e6a6e791e78732cb5a9eda.tar.xz
samba-14251aab2ec00aa7f3e6a6e791e78732cb5a9eda.zip
fixed uninitialised snum
-rw-r--r--source/smbd/lanman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/lanman.c b/source/smbd/lanman.c
index 391a94596ad..aaf2bc017f6 100644
--- a/source/smbd/lanman.c
+++ b/source/smbd/lanman.c
@@ -2617,6 +2617,7 @@ static BOOL api_WPrintJobGetInfo(connection_struct *conn,uint16 vuid, char *para
if (!check_printjob_info(&desc,uLevel,str2)) return False;
job = SVAL(p,0);
+ snum = print_job_snum(job);
if (snum < 0 || !VALID_SNUM(snum)) return(False);