Commit Diff
Diff:
726b82a56f4cbe54d5ee61eb751dd707c6c45251
a425b90bc27e0d9a51db584595dc39f3ab75744e
Commit:
a425b90bc27e0d9a51db584595dc39f3ab75744e
Tree:
28bfe9764ae8d37bd87a6f6687d90429ab5e7fba
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Tue Feb 5 09:48:31 2019 UTC
Message:
convert_name when passed a 0 length name, cores. instead return NULL...
blob - 2bc07188cdf6276a39747c4effd79d7fb8ec3df5
blob + ffb220f19cfb506385c2163a10b3415f2ccd715e
--- dnssec.c
+++ dnssec.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: dnssec.c,v 1.19 2018/10/19 08:24:48 pjp Exp $
+ * $Id: dnssec.c,v 1.20 2019/02/05 09:48:31 pjp Exp $
*/
#include "ddd-include.h"
@@ -526,6 +526,9 @@ convert_name(char *name, int namelen)
char *p, *p0;
int plen;
int i;
+
+ if (namelen == 0)
+ return NULL;
ret = calloc(namelen + 1, 1);
if (ret == NULL) {
repomaster@centroid.eu