[exim-cvs] Fix reduce expansion.

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Fix reduce expansion.
Gitweb: http://git.exim.org/exim.git/commitdiff/e1af76425323a9546eaf5dd31b66af598ba8f27a
Commit:     e1af76425323a9546eaf5dd31b66af598ba8f27a
Parent:     93a6fce2ebf117f490d7ee11f066f75280d32386
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Wed Feb 11 19:37:16 2015 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Feb 11 19:40:05 2015 +0000


    Fix reduce expansion.
    Broken-by: 55414b25bee9
---
 src/src/expand.c    |    2 +-
 src/src/functions.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index 145b827..8a7a27e 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -5501,7 +5501,7 @@ while (*s != 0)
         while (isspace(*s)) s++;
         if (*s++ != '{') goto EXPAND_FAILED_CURLY;
         t = expand_string_internal(s, TRUE, &s, skipping, TRUE, &resetok);
-        if (temp == NULL) goto EXPAND_FAILED;
+        if (!t) goto EXPAND_FAILED;
         lookup_value = t;
         if (*s++ != '}') goto EXPAND_FAILED_CURLY;
         }
diff --git a/src/src/functions.h b/src/src/functions.h
index bb3f3f4..49bb5a9 100644
--- a/src/src/functions.h
+++ b/src/src/functions.h
@@ -86,7 +86,7 @@ extern tree_node *acl_var_create(uschar *);
 extern void    acl_var_write(uschar *, uschar *, void *);
 extern uschar *auth_b64encode(uschar *, int);
 extern int     auth_b64decode(uschar *, uschar **);
-extern int     auth_call_pam(uschar *, uschar **);
+extern int     auth_call_pam(const uschar *, uschar **);
 extern int     auth_call_pwcheck(uschar *, uschar **);
 extern int     auth_call_radius(const uschar *, uschar **);
 extern int     auth_call_saslauthd(const uschar *, const uschar *,