diff options
-rw-r--r-- | os/rpcauth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/rpcauth.c b/os/rpcauth.c index d60ea3518..413cc6118 100644 --- a/os/rpcauth.c +++ b/os/rpcauth.c @@ -66,6 +66,10 @@ authdes_ezdecode(const char *inmsg, int len) SVCXPRT xprt; temp_inmsg = malloc(len); + if (temp_inmsg == NULL) { + why = AUTH_FAILED; /* generic error, since there is no AUTH_BADALLOC */ + return NULL; + } memmove(temp_inmsg, inmsg, len); memset((char *) &msg, 0, sizeof(msg)); |