1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Don't return NULL pointers for now.

We should look into how to deal with NULL v "" strings, and the NTLMSSP code
underneath properly at some stage.

Andrew Bartlett
(This used to be commit dc934412b0)
This commit is contained in:
Andrew Bartlett 2003-02-15 21:41:01 +00:00
parent 584206dccf
commit 88a4d79e7b

View File

@ -234,9 +234,9 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
pull_string(NULL, p, blob->data + ptr, sizeof(p),
len1,
STR_UNICODE|STR_NOALIGN);
(*ps) = strdup(p);
(*ps) = smb_xstrdup(p);
} else {
(*ps) = NULL;
(*ps) = smb_xstrdup("");
}
break;
case 'A':
@ -255,9 +255,9 @@ BOOL msrpc_parse(const DATA_BLOB *blob,
pull_string(NULL, p, blob->data + ptr, sizeof(p),
len1,
STR_ASCII|STR_NOALIGN);
(*ps) = strdup(p);
(*ps) = smb_xstrdup(p);
} else {
(*ps) = NULL;
(*ps) = smb_xstrdup("");
}
break;
case 'B':