]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use '=' instead of '+='
authorAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jun 2015 15:34:32 +0000 (11:34 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 15 Jun 2015 15:40:48 +0000 (11:40 -0400)
When creating attributes from packets.

src/modules/proto_dhcp/dhcp.c

index fd2ac47a5446fcc7af38675dd75c013a7ee82c27..c49c689fb1743a6d75ca789c33e225241ce5e08d 100644 (file)
@@ -613,7 +613,7 @@ static int fr_dhcp_decode_vsa(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t const *
                        pairfree(&head);
                        return -1;
                }
-               vp->op = T_OP_ADD;
+               vp->op = T_OP_EQ;
                pairsteal(ctx, vp); /* for unknown attributes hack */
 
                if (fr_dhcp_attr2vp(ctx, &vp, p + 5, p[4]) < 0) {
@@ -765,7 +765,7 @@ static int fr_dhcp_decode_suboption(TALLOC_CTX *ctx, VALUE_PAIR **tlv, uint8_t c
                                pairfree(&head);
                                return -1;
                        }
-                       vp->op = T_OP_ADD;
+                       vp->op = T_OP_EQ;
                        pairsteal(ctx, vp); /* for unknown attributes hack */
 
                        if (fr_dhcp_attr2vp(ctx, &vp, a_p, a_len) < 0) {
@@ -1008,7 +1008,7 @@ ssize_t fr_dhcp_decode_options(TALLOC_CTX *ctx, VALUE_PAIR **out, uint8_t const
                                pairfree(out);
                                return -1;
                        }
-                       vp->op = T_OP_ADD;
+                       vp->op = T_OP_EQ;
 
                        if (fr_dhcp_attr2vp(ctx, &vp, a_p, a_len) < 0) {
                                pairfree(&vp);