summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-10-31 18:42:38 +0000
committerJeremy Allison <jra@samba.org>2002-10-31 18:42:38 +0000
commit63eefb36f15c9c823e0a1a33e2fd99f4bb10a993 (patch)
treea1a267458c9ff8548c682f4d85d56bbba8ceb823 /source3/printing
parente1239ecfb1b26f893445e7365efabedb4531e017 (diff)
downloadsamba-63eefb36f15c9c823e0a1a33e2fd99f4bb10a993.tar.gz
samba-63eefb36f15c9c823e0a1a33e2fd99f4bb10a993.tar.bz2
samba-63eefb36f15c9c823e0a1a33e2fd99f4bb10a993.zip
Check the long_archi name for NULL.
Jeremy. (This used to be commit e504d1170da0d89da78063f0a00fc7b9294d911f)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c6
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 ) &&