Emit debug message when map_tp_vp returns no results
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 29 Sep 2014 03:14:31 +0000 (23:14 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 29 Sep 2014 03:47:13 +0000 (23:47 -0400)
src/main/map.c

index e0fe6cc..bb71792 100644 (file)
@@ -1048,7 +1048,10 @@ int map_to_request(REQUEST *request, value_pair_map_t const *map, radius_map_get
                        rad_assert(!head);
                        return rcode;
                }
-               if (!head) return rcode;
+               if (!head) {
+                       RDEBUG2("No attributes updated");
+                       return rcode;
+               }
        } else {
                if (debug_flag) map_debug_log(request, map, NULL);
        }