mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 17:06:28 +00:00
Merge pull request #16417 from LabNConsulting/dleroy/nhrpd-noauth-fix
nhrpd: Fixes auth config change bug
This commit is contained in:
commit
272077d2ce
@ -481,8 +481,10 @@ DEFPY(if_nhrp_authentication, if_nhrp_authentication_cmd,
|
|||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nifp->auth_token)
|
if (nifp->auth_token) {
|
||||||
zbuf_free(nifp->auth_token);
|
zbuf_free(nifp->auth_token);
|
||||||
|
nifp->auth_token = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
nifp->auth_token = zbuf_alloc(pass_len + sizeof(uint32_t));
|
nifp->auth_token = zbuf_alloc(pass_len + sizeof(uint32_t));
|
||||||
auth = (struct nhrp_cisco_authentication_extension *)
|
auth = (struct nhrp_cisco_authentication_extension *)
|
||||||
@ -505,8 +507,10 @@ DEFPY(if_no_nhrp_authentication, if_no_nhrp_authentication_cmd,
|
|||||||
VTY_DECLVAR_CONTEXT(interface, ifp);
|
VTY_DECLVAR_CONTEXT(interface, ifp);
|
||||||
struct nhrp_interface *nifp = ifp->info;
|
struct nhrp_interface *nifp = ifp->info;
|
||||||
|
|
||||||
if (nifp->auth_token)
|
if (nifp->auth_token) {
|
||||||
zbuf_free(nifp->auth_token);
|
zbuf_free(nifp->auth_token);
|
||||||
|
nifp->auth_token = NULL;
|
||||||
|
}
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user