Check for null regtype

This commit is contained in:
mike
2016-04-25 12:03:39 +01:00
parent 46bcdce764
commit 52376ff43c
+3
View 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)