projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return NULL rather than an invalid pointer on failure
[trust_router.git]
/
mon
/
mons.c
diff --git
a/mon/mons.c
b/mon/mons.c
index
b47f30a
..
1df11f2
100644
(file)
--- 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;
}