]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Check for null regtype
authormike <mike@qtunes.org>
Mon, 25 Apr 2016 11:03:39 +0000 (12:03 +0100)
committermike <mike@qtunes.org>
Mon, 25 Apr 2016 11:03:39 +0000 (12:03 +0100)
mdns_tinysvcmdns.c

index 60bdf36070ca3e071bb05f271485d9687aaea2e9..049737b4353840bd7fb8d6e09edc43e4d54491d7 100644 (file)
@@ -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)