diff --git a/sys/src/lib/auth/auth_proxy.c b/sys/src/lib/auth/auth_proxy.c index 3785293..3c75d81 100644 --- a/sys/src/lib/auth/auth_proxy.c +++ b/sys/src/lib/auth/auth_proxy.c @@ -199,6 +199,11 @@ auth_proxy(int fd, AuthGetkey *getkey, char *fmt, ...) p = vsmprint(fmt, arg); va_end(arg); + if(p == nil){ + werrstr("not enough memory: %r"); + return nil; + } + ai = nil; afd = open("/mnt/factotum/rpc", ORDWR); if(afd < 0){