summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-11-23 16:54:34 +0100
committerGünther Deschner <gd@samba.org>2009-11-23 16:56:03 +0100
commita6142987ac164318f5023eaa91e4e65efada4423 (patch)
tree521af39ae58b3c836f8b7540e43d3ef2a7cb8c98
parenta1a81ef785b2372bd4aab0304150b0f8b0fac247 (diff)
downloadsamba-a6142987ac164318f5023eaa91e4e65efada4423.tar.gz
samba-a6142987ac164318f5023eaa91e4e65efada4423.tar.bz2
samba-a6142987ac164318f5023eaa91e4e65efada4423.zip
s3-spoolss: Fix GetPrinter level 101.
Guenther
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 4f3bf73077..072090b14a 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4946,7 +4946,7 @@ static WERROR spoolss_DriverFileInfo_from_driver(TALLOC_CTX *mem_ctx,
count++;
}
- for (i=0; driver->info3.dependent_files[i][0] != '\0'; i++) {
+ for (i=0; driver->info3.dependent_files[i] && driver->info3.dependent_files[i][0] != '\0'; i++) {
info = TALLOC_REALLOC_ARRAY(mem_ctx, info,
struct spoolss_DriverFileInfo,
count + 1);