Commit 03092d10 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Do not asume listener->id != NULL when looking for a listener with a specific ID

parent ec6a8552
Pipeline #282 failed with stage
in 12 seconds
......@@ -476,7 +476,7 @@ static listensocket_t * listensocket_container_get_by_id(listensocket_container_
if (self->sock[i] != NULL) {
listener = listensocket_get_listener(self->sock[i]);
if (listener) {
if (strcmp(listener->id, id) == 0) {
if (listener->id != NULL && strcmp(listener->id, id) == 0) {
listensocket_release_listener(self->sock[i]);
if (refobject_ref(self->sock[i]) == 0) {
return self->sock[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment