diff --git a/stream/stream.c b/stream/stream.c index eca44e4afb..d23794ed60 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -916,7 +916,8 @@ bool stream_has_proto(const char *proto) } talloc_free(get_protocols); - return match; + if (match) + return match; } return false;