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);