diff options
author | Jeremy Allison <jra@samba.org> | 2002-10-31 18:43:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-10-31 18:43:05 +0000 |
commit | 0e2eedb268ea48de490adfe4112a9347fdf41fec (patch) | |
tree | e0535c3d14d1c7a94e1182698fea6752e45930ef /source3/printing | |
parent | fb6c6ec09ef2203eba93e90336d225265c4a7d9f (diff) | |
download | samba-0e2eedb268ea48de490adfe4112a9347fdf41fec.tar.gz samba-0e2eedb268ea48de490adfe4112a9347fdf41fec.tar.bz2 samba-0e2eedb268ea48de490adfe4112a9347fdf41fec.zip |
Check the long_archi name is not null.
Jeremy.
(This used to be commit 9e47aa32ed96faff4a68a8e360c1353fc011adf1)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 2226190323..6e4bb1e977 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -676,6 +676,12 @@ BOOL get_short_archi(char *short_archi, char *long_archi) int i=-1; DEBUG(107,("Getting architecture dependant directory\n")); + + if (long_archi == NULL) { + DEBUGADD(107,("Bad long_archi param.!\n")); + return False; + } + do { i++; } while ( (archi_table[i].long_archi!=NULL ) && |