If abinary is 0x..., then make it type "octets"
authoraland <aland>
Wed, 3 May 2006 17:40:58 +0000 (17:40 +0000)
committeraland <aland>
Wed, 3 May 2006 17:40:58 +0000 (17:40 +0000)
src/lib/valuepair.c

index 7771a1a..5457770 100644 (file)
@@ -734,8 +734,10 @@ VALUE_PAIR *pairparsevalue(VALUE_PAIR *vp, const char *value)
                        break;
                case PW_TYPE_ABINARY:
 #ifdef ASCEND_BINARY
-                       if (strncasecmp(value, "0x", 2) == 0) goto do_octets;
-                       
+                       if (strncasecmp(value, "0x", 2) == 0) {
+                               vp->type = PW_TYPE_OCTETS;
+                               goto do_octets;
+                       }                       
 
                        /*
                         *      Special case to convert filter to binary