[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Fri May 13 10:50:02 MDT 2011


The branch, master has been updated
       via  3d10021 s3-net: fix potential crash bug in display_print_driver3().
      from  5bcc0b2 s3:build: install libtdb with full version number instead of only SO version

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3d100216b84f4f25c3e761741eda2cc134957e96
Author: Günther Deschner <gd at samba.org>
Date:   Fri May 13 15:03:59 2011 +0200

    s3-net: fix potential crash bug in display_print_driver3().
    
    Guenther
    
    Autobuild-User: Günther Deschner <gd at samba.org>
    Autobuild-Date: Fri May 13 18:49:06 CEST 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/utils/net_rpc_printer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c
index 2fb5221..db7416b 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]);
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list