newvector should be a bool
[freeradius.git] / src / modules / proto_dhcp / dhcp.c
index f8860bc..eec47f1 100644 (file)
@@ -225,7 +225,7 @@ RADIUS_PACKET *fr_dhcp_recv(int sockfd)
        uint8_t                 *code;
        ssize_t                 data_len;
 
-       packet = rad_alloc(NULL, 0);
+       packet = rad_alloc(NULL, false);
        if (!packet) {
                fr_strerror_printf("Failed allocating packet");
                return NULL;
@@ -718,8 +718,7 @@ ssize_t fr_dhcp_decode_options(RADIUS_PACKET *packet,
                for (i = 0; i < num_entries; i++) {
                        vp = pairmake(packet, NULL, da->name, NULL, T_OP_ADD);
                        if (!vp) {
-                               fr_strerror_printf("Cannot build attribute %s",
-                                       fr_strerror());
+                               fr_strerror_printf("Cannot build attribute %s", fr_strerror());
                                pairfree(head);
                                return -1;
                        }