git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1239ec
)
Check the long_archi name for NULL.
author
Jeremy Allison
<jra@samba.org>
Thu, 31 Oct 2002 18:42:38 +0000
(18:42 +0000)
committer
Jeremy Allison
<jra@samba.org>
Thu, 31 Oct 2002 18:42:38 +0000
(18:42 +0000)
Jeremy.
(This used to be commit
e504d1170da0d89da78063f0a00fc7b9294d911f
)
source3/printing/nt_printing.c
patch
|
blob
|
history
diff --git
a/source3/printing/nt_printing.c
b/source3/printing/nt_printing.c
index 222619032332e2ce612ff9ace62eca3fb84c165c..6e4bb1e977dbcf01e9561d09f0f3c2836d187e9b 100644
(file)
--- 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 ) &&