X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdhcpv6.c;h=10f98c5aa8679cd123310ee7ae64bdc5041bf99a;hb=6bbd2b0208fc17b6566595bfdfef2ff1d012d143;hp=6e5e8ba88ecec32c0fd2edaddb500c0dfe7495c6;hpb=c883e53b45ea050fd0038bb15bb02f1e97d3a765;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 6e5e8ba..10f98c5 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -1370,8 +1370,7 @@ int dhcpv6_promote_server_cand(void) size_t cand_len; struct dhcpv6_server_cand *cand = odhcp6c_get_state(STATE_SERVER_CAND, &cand_len); uint16_t hdr[2]; - int ret = (na_mode == IA_MODE_NONE && pd_mode == IA_MODE_NONE) ? - DHCPV6_STATELESS : DHCPV6_STATEFUL; + int ret = DHCPV6_STATELESS; // Clear lingering candidate state info odhcp6c_clear_state(STATE_SERVER_ID);