projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
757129f
)
Don't exit() on memory alloc failure, return RLM_MODULE_FAIL instead.
author
mgriego
<mgriego>
Sat, 15 May 2004 14:57:41 +0000
(14:57 +0000)
committer
mgriego
<mgriego>
Sat, 15 May 2004 14:57:41 +0000
(14:57 +0000)
src/modules/rlm_digest/rlm_digest.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_digest/rlm_digest.c
b/src/modules/rlm_digest/rlm_digest.c
index
877f813
..
4ef3aea
100644
(file)
--- a/
src/modules/rlm_digest/rlm_digest.c
+++ b/
src/modules/rlm_digest/rlm_digest.c
@@
-116,7
+116,7
@@
static int digest_authorize(void *instance, REQUEST *request)
sub = paircreate(PW_DIGEST_REALM - 1 + p[0],
PW_TYPE_STRING);
if (!sub) {
-
exit(1)
; /* out of memory */
+
return RLM_MODULE_FAIL
; /* out of memory */
}
memcpy(&sub->strvalue[0], &p[2], attrlen - 2);
sub->strvalue[attrlen - 2] = '\0';