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 <[email protected]>
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