From f40f35fa0acc7264c2c1cad6a32cfb85fb8923d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 8 Dec 2004 10:24:10 +0000 Subject: r4098: catch null guid string so RPC-DRSUAPI works against my server (This used to be commit c4c83f04f55d206716380330d2a4d2b31f893346) --- source4/librpc/ndr/ndr_misc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/librpc/ndr/ndr_misc.c') diff --git a/source4/librpc/ndr/ndr_misc.c b/source4/librpc/ndr/ndr_misc.c index 0b5954d7f9..a538dd3033 100644 --- a/source4/librpc/ndr/ndr_misc.c +++ b/source4/librpc/ndr/ndr_misc.c @@ -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], -- cgit