rdpdr/disk: fixed command line segfault
when incomplete commands are given for disk redirection freerdp crashed. fixed #793
This commit is contained in:
parent
c9d4abf1a5
commit
9f648ca29f
@ -622,7 +622,7 @@ int DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
|
||||
name = (char*)pEntryPoints->plugin_data->data[1];
|
||||
path = (char*)pEntryPoints->plugin_data->data[2];
|
||||
|
||||
if (name[0] && path[0])
|
||||
if (name && name[0] && path && path[0])
|
||||
{
|
||||
disk = xnew(DISK_DEVICE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user