summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-11 17:33:32 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-14 22:29:58 +1100
commit7f16da7473c5daa37f07ea20491f0a96debff03a (patch)
tree5f42d5b09422f7d9c12502571f9b1df80025a688 /source4
parentbb009412d31aaae01575814791ec806ee2117e2f (diff)
downloadsamba-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')
-rw-r--r--source4/dsdb/common/util.c2
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)) {