From: mike Date: Mon, 25 Apr 2016 11:03:39 +0000 (+0100) Subject: Check for null regtype X-Git-Tag: 2.8.3.2~10^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52376ff43cc777a28cd93fc276a5fd33b7510199;p=thirdparty%2Fshairport-sync.git Check for null regtype --- diff --git a/mdns_tinysvcmdns.c b/mdns_tinysvcmdns.c index 60bdf360..049737b4 100644 --- a/mdns_tinysvcmdns.c +++ b/mdns_tinysvcmdns.c @@ -125,6 +125,9 @@ static int mdns_tinysvcmdns_register(char *apname, int port) { txt = txtwithoutmetadata; + if (config.regtype == NULL) + die("tinysvcmdns: regtype is null"); + char* extendedregtype = malloc(strlen(config.regtype)+strlen(".local")+1); if (extendedregtype==NULL)