nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7d4a9d5da52686b2469a426392cdf16148a10218
parent ad7ae0cb076500db9d281688d1d506cabc991c32
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date:   Fri, 25 Dec 2020 10:45:45 +0100

Use malloc() in newly merged code, at least.

Diffstat:
Mdns.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dns.c b/dns.c @@ -52,7 +52,7 @@ int type; if (!stralloc_copy(&glue,domain)) return DNS_MEM; if (!stralloc_0(&glue)) return DNS_MEM; if (!responsebuflen) { - if ((response.buf = (unsigned char *)alloc(PACKETSZ+1))) + if ((response.buf = malloc(PACKETSZ+1))) responsebuflen = PACKETSZ+1; else return DNS_MEM; }