summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-11-11 19:22:00 +0000
committerGerald Carter <jerry@samba.org>2003-11-11 19:22:00 +0000
commitb64c6355b04f1c199a5883821653b937f9198c9d (patch)
tree7afc7f93a821f171289420cbbd9ce6e1ef600df8 /source3/rpc_parse
parent33e6af5b3d8db3e0c4a7eabacf3be1c849805c84 (diff)
downloadsamba-b64c6355b04f1c199a5883821653b937f9198c9d.tar.gz
samba-b64c6355b04f1c199a5883821653b937f9198c9d.tar.bz2
samba-b64c6355b04f1c199a5883821653b937f9198c9d.zip
fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit ccd5665a65de6ccfdb9a5f490be1a7b5de486e2a)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 86ea83d7aa..203122e73c 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -1016,7 +1016,7 @@ void init_unistr2_from_datablob(UNISTR2 *str, DATA_BLOB *blob)
str->uni_max_len = str->uni_str_len;
str->offset = 0;
str->buffer = (uint16 *) memdup(blob->data, blob->length);
- if (!str->buffer) {
+ if ((str->buffer == NULL) && (blob->length > 0)) {
smb_panic("init_unistr2_from_datablob: malloc fail\n");
}
}