rdpdr/disk: fixed command line segfault

when incomplete commands are given for disk redirection freerdp crashed.
fixed #793
This commit is contained in:
Bernhard Miklautz 2012-12-03 17:29:42 +01:00
parent c9d4abf1a5
commit 9f648ca29f

View File

@ -622,7 +622,7 @@ int DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
name = (char*)pEntryPoints->plugin_data->data[1]; name = (char*)pEntryPoints->plugin_data->data[1];
path = (char*)pEntryPoints->plugin_data->data[2]; path = (char*)pEntryPoints->plugin_data->data[2];
if (name[0] && path[0]) if (name && name[0] && path && path[0])
{ {
disk = xnew(DISK_DEVICE); disk = xnew(DISK_DEVICE);