]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix pairmake->pairmake_xlat->pairmake recursive calls with regexps; lets regexps... 102/head
authorPhil Mayers <p.mayers@imperial.ac.uk>
Sat, 6 Oct 2012 13:00:47 +0000 (14:00 +0100)
committerPhil Mayers <p.mayers@imperial.ac.uk>
Sat, 6 Oct 2012 13:00:47 +0000 (14:00 +0100)
src/lib/valuepair.c

index e5f2d9d3ad1781049122409146a0250f0b17d633..57ace38a8c9f9302b42e7646df536b97e5c64b69 100644 (file)
@@ -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);