From 796245f8141fe7e1bc9f865e5a4f315b18b01d1b Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Fri, 1 Jun 2018 15:02:17 -0400 Subject: [PATCH] Return NULL rather than an invalid pointer on failure --- mon/mons.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mon/mons.c b/mon/mons.c index b47f30a..1df11f2 100644 --- a/mon/mons.c +++ b/mon/mons.c @@ -146,6 +146,7 @@ static TR_GSS_RC mons_req_cb(TALLOC_CTX *mem_ctx, TR_MSG *req_msg, TR_MSG **resp if (resp == NULL) { /* error processing the request */ /* TODO send back an error */ + *resp_msg = NULL; /* null this out so the caller doesn't mistake it for valid */ goto cleanup; } -- 2.1.4