From: Arran Cudbard-Bell Date: Sat, 16 May 2015 20:57:35 +0000 (-0400) Subject: Print debug before, not after removing the attribute from the src cursor X-Git-Tag: release_3_0_9~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9677bd1e0421fddb082f56a0d5ace62007b401d9;p=thirdparty%2Ffreeradius-server.git Print debug before, not after removing the attribute from the src cursor --- diff --git a/src/main/map.c b/src/main/map.c index 3768f116ade..2af7ec5a882 100644 --- a/src/main/map.c +++ b/src/main/map.c @@ -1312,8 +1312,8 @@ int map_to_request(REQUEST *request, vp_map_t const *map, radius_map_getvalue_t /* Wind to last instance */ fr_cursor_last(&src_list); if (dst) { - dst = fr_cursor_replace(&dst_list, fr_cursor_remove(&src_list)); DEBUG_OVERWRITE(dst, fr_cursor_current(&src_list)); + dst = fr_cursor_replace(&dst_list, fr_cursor_remove(&src_list)); pairfree(&dst); } else { fr_cursor_insert(&dst_list, fr_cursor_remove(&src_list));