diff options
author | Matthieu Patou <mat@matws.net> | 2011-06-22 20:54:37 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2011-06-22 20:13:08 +0200 |
commit | 4d51ddbb5c9e4465887d9fcd2c10de3f46c6a12a (patch) | |
tree | e81168cfe2e3b649f17b41b349fbe582b5d77dba /source4/dsdb/schema | |
parent | 249fbd8a334b4d19f9148e07449fec3f26b8267d (diff) | |
download | samba-4d51ddbb5c9e4465887d9fcd2c10de3f46c6a12a.tar.gz samba-4d51ddbb5c9e4465887d9fcd2c10de3f46c6a12a.tar.bz2 samba-4d51ddbb5c9e4465887d9fcd2c10de3f46c6a12a.zip |
s4-schema: avoid segfaulting if id3.guid is NULL
Diffstat (limited to 'source4/dsdb/schema')
-rw-r--r-- | source4/dsdb/schema/schema_syntax.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index f542f670f1..a93cdfaaa9 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -1995,10 +1995,9 @@ static WERROR dsdb_syntax_DN_BINARY_drsuapi_to_ldb(const struct dsdb_syntax_ctx talloc_free(tmp_ctx); return WERR_FOOBAR; } + talloc_free(guid_blob.data); } - talloc_free(guid_blob.data); - if (id3.__ndr_size_sid) { DATA_BLOB sid_blob; ndr_err = ndr_push_struct_blob(&sid_blob, tmp_ctx, &id3.sid, |