Fix integer conversion; radius "ints" are really uint32's.
authorfcusack <fcusack>
Thu, 19 Jun 2003 09:04:18 +0000 (09:04 +0000)
committerfcusack <fcusack>
Thu, 19 Jun 2003 09:04:18 +0000 (09:04 +0000)
Thanks to Sepp Rudel and Oliver Graf.

src/lib/valuepair.c

index 0211741..231a7d6 100644 (file)
@@ -588,7 +588,7 @@ VALUE_PAIR *pairparsevalue(VALUE_PAIR *vp, const char *value)
                         *      Note that ALL integers are unsigned!
                         */
                        if (isdigit((int) *value)) {
-                               vp->lvalue = atoi(value);
+                               vp->lvalue = (uint32_t) strtoul(value, NULL, 10);
                                vp->length = 4;
                        }
                        /*