Author: tridge Date: 2004-12-08 10:24:10 +0000 (Wed, 08 Dec 2004) New Revision: 4098
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4098 Log: catch null guid string so RPC-DRSUAPI works against my server Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c Changeset: Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c =================================================================== --- branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c 2004-12-08 10:13:45 UTC (rev 4097) +++ branches/SAMBA_4_0/source/librpc/ndr/ndr_misc.c 2004-12-08 10:24:10 UTC (rev 4098) @@ -37,6 +37,10 @@ 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],