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:
parent
c2495d60a1
commit
c4c83f04f5
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user