#! /bin/sh /usr/share/dpatch/dpatch-run
## 245-policy-xlat.dpatch by  <joe@nameserver3.ttec.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad freeradius-1.1.0~/src/modules/rlm_policy/evaluate.c freeradius-1.1.0/src/modules/rlm_policy/evaluate.c
--- freeradius-1.1.0~/src/modules/rlm_policy/evaluate.c	2005-11-27 11:39:20.000000000 -0500
+++ freeradius-1.1.0/src/modules/rlm_policy/evaluate.c	2005-11-27 11:40:02.000000000 -0500
@@ -943,12 +943,12 @@
 
 	case POLICY_LEX_AFTER_TAIL_ASSIGN:
 	case POLICY_LEX_ASSIGN: /* 'union' */
-		pairmove(vps, &head);
+		pairxlatmove(NULL, vps, &head);
 		pairfree(&head);
 		break;
 
 	case POLICY_LEX_BEFORE_HEAD_ASSIGN:
-		pairmove(&head, &vps);
+		pairxlatmove(NULL, &head, &vps);
 		pairfree(vps);
 		*vps = head;
 		break;
@@ -1005,14 +1005,14 @@
 					break;
 				case POLICY_LEX_BEFORE_WHERE_ASSIGN:
 					if (vpprev) {
-						pairmove(&lvp, &head);
+						pairxlatmove(NULL, &lvp, &head);
 						pairfree(&head);
 					}
 					else
 						*vps = lvp = head;
 					break;
 				case POLICY_LEX_AFTER_WHERE_ASSIGN:
-					pairmove(&lvp, &head);
+					pairxlatmove(NULL, &lvp, &head);
 					pairfree(&head);
 					break;
 				default:/*never reached*/
