Exit tests with number of failures.
[radsecproxy.git] / lib / avp.c
index 6f30d4c..c60d9ef 100644 (file)
--- a/lib/avp.c
+++ b/lib/avp.c
@@ -1,5 +1,5 @@
-/* Copyright 2011 PADL Software Pty Ltd. All rights reserved.
-   See the file COPYING for licensing information.  */
+/* Copyright 2011 JANET(UK). All rights reserved.
+   See LICENSE for licensing information.  */
 
 #if defined HAVE_CONFIG_H
 #include <config.h>
@@ -106,7 +106,10 @@ rs_avp_dup (rs_const_avp *vp)
 {
   rs_avp *vp2;
 
-  vp2 = nr_vp_alloc (vp->da);
+  if (vp->da->flags.unknown)
+    vp2 = nr_vp_alloc_raw (vp->da->attr, vp->da->vendor);
+  else
+    vp2 = nr_vp_alloc (vp->da);
   if (vp2 == NULL)
     return NULL;