diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-11 17:33:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-14 22:29:58 +1100 |
commit | 7f16da7473c5daa37f07ea20491f0a96debff03a (patch) | |
tree | 5f42d5b09422f7d9c12502571f9b1df80025a688 /source4/dsdb/common | |
parent | bb009412d31aaae01575814791ec806ee2117e2f (diff) | |
download | samba-7f16da7473c5daa37f07ea20491f0a96debff03a.tar.gz samba-7f16da7473c5daa37f07ea20491f0a96debff03a.tar.bz2 samba-7f16da7473c5daa37f07ea20491f0a96debff03a.zip |
s4-dsdb: return a zero guid on error in samdb_result_guid()
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r-- | source4/dsdb/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 3aa415ef23..5b8365a3e1 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -400,7 +400,7 @@ struct GUID samdb_result_guid(const struct ldb_message *msg, const char *attr) NTSTATUS status; v = ldb_msg_find_ldb_val(msg, attr); - if (!v) return guid; + if (!v) return GUID_zero(); status = GUID_from_ndr_blob(v, &guid); if (!NT_STATUS_IS_OK(status)) { |