From 0e2eedb268ea48de490adfe4112a9347fdf41fec Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 31 Oct 2002 18:43:05 +0000 Subject: Check the long_archi name is not null. Jeremy. (This used to be commit 9e47aa32ed96faff4a68a8e360c1353fc011adf1) --- source3/printing/nt_printing.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/printing') 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 ) && -- cgit