Mercurial > hg > dhcpcd
changeset 2251:b95609d1f89c draft
If we aren't sending an authentication option, don't update it.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 29 Jan 2014 17:21:14 +0000 |
| parents | 169555327af9 |
| children | 582257677e5d |
| files | dhcp6.c |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Wed Jan 29 14:16:31 2014 +0000 +++ b/dhcp6.c Wed Jan 29 17:21:14 2014 +0000 @@ -852,7 +852,9 @@ /* Update the elapsed time */ dhcp6_updateelapsed(ifp, state->send, state->send_len); - if (dhcp6_update_auth(ifp, state->send, state->send_len) == -1) { + if (ifp->options->auth.options & DHCPCD_AUTH_SEND && + dhcp6_update_auth(ifp, state->send, state->send_len) == -1) + { syslog(LOG_ERR, "%s: dhcp6_updateauth: %m", ifp->name); return -1; }
