summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-13 15:03:59 +0200
committerGünther Deschner <gd@samba.org>2011-05-13 18:49:06 +0200
commit3d100216b84f4f25c3e761741eda2cc134957e96 (patch)
tree5c8d598afadd48030b589bf2e920d305e1b3bcb9
parent5bcc0b2138b60fcecea94093ca43aaca4bc4d4ec (diff)
downloadsamba-3d100216b84f4f25c3e761741eda2cc134957e96.tar.gz
samba-3d100216b84f4f25c3e761741eda2cc134957e96.tar.xz
samba-3d100216b84f4f25c3e761741eda2cc134957e96.zip
s3-net: fix potential crash bug in display_print_driver3().
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri May 13 18:49:06 CEST 2011 on sn-devel-104
-rw-r--r--source3/utils/net_rpc_printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 2fb52212c91..db7416b71ee 100644
--- a/source3/utils/net_rpc_printer.c
+++ b/source3/utils/net_rpc_printer.c
@@ -70,7 +70,7 @@ static void display_print_driver3(struct spoolss_DriverInfo3 *r)
printf(_("\tConfigfile: [%s]\n\n"), r->config_file);
printf(_("\tHelpfile: [%s]\n\n"), r->help_file);
- for (i=0; r->dependent_files[i] != NULL; i++) {
+ for (i=0; r->dependent_files && r->dependent_files[i] != NULL; i++) {
printf(_("\tDependentfiles: [%s]\n"), r->dependent_files[i]);
}