git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb00941
)
s4-dsdb: return a zero guid on error in samdb_result_guid()
author
Andrew Tridgell
<tridge@samba.org>
Fri, 11 Dec 2009 06:33:32 +0000
(17:33 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 14 Dec 2009 11:29:58 +0000
(22:29 +1100)
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index 3aa415ef23b5d446616983c8afe15d8e4583212c..5b8365a3e13571f43efff8cb5af98f9ae4007442 100644
(file)
--- 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)) {