complain if we were unable to allocate memory
authoraland <aland>
Fri, 2 Feb 2001 20:17:55 +0000 (20:17 +0000)
committeraland <aland>
Fri, 2 Feb 2001 20:17:55 +0000 (20:17 +0000)
Patch by Thiago Rondon <maluco@mileniumnet.com.br>

src/modules/rlm_acct_unique/rlm_acct_unique.c
src/modules/rlm_always/rlm_always.c

index bfa3c23..e924274 100644 (file)
@@ -123,6 +123,7 @@ static int unique_instantiate(CONF_SECTION *conf, void **instance) {
         *  Set up a storage area for instance data
         */
        if ((inst = malloc(sizeof(*inst))) == NULL) {
+               radlog(L_ERR, "rlm_acct_unique:  out of memory");
                return -1;
        }
        memset(inst, 0, sizeof(*inst));
index 71f83b3..2a7a96b 100644 (file)
@@ -108,6 +108,7 @@ static int always_instantiate(CONF_SECTION *conf, void **instance)
         */
        data = malloc(sizeof(*data));
        if (!data) {
+               radlog(L_ERR, "rlm_always:  out of memory");
                return -1;
        }