[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3368-gd9f66f3

Jeremy Allison jra at samba.org
Fri Jan 16 20:23:47 GMT 2009


The branch, v3-2-test has been updated
       via  d9f66f3e3d9af9c3323029207e62391f382632e9 (commit)
      from  3504910d91fa6d174861815255062efefb0c46aa (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit d9f66f3e3d9af9c3323029207e62391f382632e9
Author: Andreas Schneider <anschneider at suse.de>
Date:   Fri Jan 16 12:23:00 2009 -0800

    Fix a segfault if ? is there but the options are NULL. This is the case if SMBC_parse_path is called by SMBC_stat_ctx.

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

Summary of changes:
 source/libsmb/libsmb_path.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/libsmb_path.c b/source/libsmb/libsmb_path.c
index 2c3a5f8..b0970d4 100644
--- a/source/libsmb/libsmb_path.c
+++ b/source/libsmb/libsmb_path.c
@@ -286,7 +286,7 @@ SMBC_parse_path(TALLOC_CTX *ctx,
                 DEBUG(4, ("Found options '%s'", q));
                 
 		/* Copy the options */
-		if (*pp_options != NULL) {
+		if (pp_options && *pp_options != NULL) {
 			TALLOC_FREE(*pp_options);
 			*pp_options = talloc_strdup(ctx, q);
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list