summaryrefslogtreecommitdiff
path: root/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-11-14 13:24:54 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-11-17 10:06:27 +1100
commit8e1934a3845944ba7d79848368976e82d182e8d1 (patch)
tree5b268a39d6bbf94dccd9ee2fe1dbe8af54c71c56 /librpc/rpc
parent109719de030cb2432bea991077b12b4cf937c108 (diff)
downloadsamba-8e1934a3845944ba7d79848368976e82d182e8d1.tar.gz
samba-8e1934a3845944ba7d79848368976e82d182e8d1.tar.bz2
samba-8e1934a3845944ba7d79848368976e82d182e8d1.zip
Use new GUID_from_data_blob
This avoid the problem that GUID_from_string now strictly requires no trailing data after the string-form GUID. Andrew Bartlett
Diffstat (limited to 'librpc/rpc')
-rw-r--r--librpc/rpc/binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index b755431034..a660989d19 100644
--- a/librpc/rpc/binding.c
+++ b/librpc/rpc/binding.c
@@ -251,8 +251,8 @@ _PUBLIC_ NTSTATUS dcerpc_parse_binding(TALLOC_CTX *mem_ctx, const char *s, struc
if (p && PTR_DIFF(p, s) == 36) { /* 36 is the length of a UUID */
NTSTATUS status;
-
- status = GUID_from_string(s, &b->object.uuid);
+ DATA_BLOB blob = data_blob(s, 36);
+ status = GUID_from_data_blob(&blob, &b->object.uuid);
if (NT_STATUS_IS_ERR(status)) {
DEBUG(0, ("Failed parsing UUID\n"));