From d5a81af7be5c2d7c929078f9b83e2428440db0c0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 6 Apr 2019 20:23:00 +0200 Subject: [PATCH] libauthsrv: authdial smprint() out of memory autism --- sys/src/libauthsrv/authdial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/libauthsrv/authdial.c b/sys/src/libauthsrv/authdial.c index 1aaa5b1f3..fb67d391c 100644 --- a/sys/src/libauthsrv/authdial.c +++ b/sys/src/libauthsrv/authdial.c @@ -28,6 +28,8 @@ authdial(char *netroot, char *dom) */ if(p == nil) { p = smprint("p9auth.%s", dom); + if(p == nil) + return -1; t = ndbnew("auth", p); } free(p);