diff options
author | Nikias Bassen | 2020-05-29 19:51:23 +0200 |
---|---|---|
committer | Nikias Bassen | 2020-05-29 19:51:23 +0200 |
commit | d79d1908eec1eee9431cee2c27680182a4db6b3b (patch) | |
tree | 61633e562c1201712dfd5d8dc77b637564e9b3f9 /tools/iproxy.c | |
parent | 3ae1cbbfb3b21af9ab1bc749b6a2681a3a3334ec (diff) | |
download | libusbmuxd-d79d1908eec1eee9431cee2c27680182a4db6b3b.tar.gz libusbmuxd-d79d1908eec1eee9431cee2c27680182a4db6b3b.tar.bz2 |
iproxy: Fix crash when no UDID is given
Diffstat (limited to 'tools/iproxy.c')
-rw-r--r-- | tools/iproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c index 64a9989..e133e26 100644 --- a/tools/iproxy.c +++ b/tools/iproxy.c @@ -411,7 +411,7 @@ int main(int argc, char **argv) } cdata->fd = c_sock; cdata->sfd = -1; - cdata->udid = strdup(device_udid); + cdata->udid = (device_udid) ? strdup(device_udid) : NULL; cdata->lookup_opts = lookup_opts; cdata->device_port = device_port[i]; #ifdef WIN32 |