rktio: repair to listen failure handling

This commit is contained in:
Matthew Flatt 2017-06-20 12:33:09 -06:00
parent 8094ef7a02
commit d90976f865

View File

@ -1468,8 +1468,10 @@ rktio_listener_t *rktio_listen(rktio_t *rktio, rktio_addrinfo_t *src, int backlo
#endif
}
l->count = pos;
rktio_listen_stop(rktio, l);
if (l) {
l->count = pos;
rktio_listen_stop(rktio, l);
}
return NULL;
}