From 119c4cc4aa5ed48471a0af5c1d0a0dec3e174e7b Mon Sep 17 00:00:00 2001
From: Phil Mayers
Date: Sat, 6 Oct 2012 14:00:47 +0100
Subject: [PATCH] fix pairmake->pairmake_xlat->pairmake recursive calls with
regexps; lets regexps work in "users" files again
---
src/lib/valuepair.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/valuepair.c b/src/lib/valuepair.c
index e5f2d9d3ad1..57ace38a8c9 100644
--- a/src/lib/valuepair.c
+++ b/src/lib/valuepair.c
@@ -1645,10 +1645,10 @@ VALUE_PAIR *pairmake(const char *attribute, const char *value, int operator)
#else
if (!value) {
- fr_strerror_printf("No regular expression found in %s",
- vp->name);
- pairbasicfree(vp);
- return NULL;
+ /* just return the vp - we've probably been called
+ * by pairmake_xlat who will fill in the value for us
+ */
+ return vp;
}
pairbasicfree(vp);
--
2.47.3