1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00

r4098: catch null guid string so RPC-DRSUAPI works against my server

This commit is contained in:
Andrew Tridgell 2004-12-08 10:24:10 +00:00 committed by Gerald (Jerry) Carter
parent c2495d60a1
commit c4c83f04f5

View File

@ -37,6 +37,10 @@ NTSTATUS GUID_from_string(const char *s, struct GUID *guid)
uint32_t node[6];
int i;
if (s == NULL) {
return NT_STATUS_INVALID_PARAMETER;
}
if (11 == sscanf(s, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x",
&time_low, &time_mid, &time_hi_and_version,
&clock_seq[0], &clock_seq[1],