summaryrefslogtreecommitdiff
path: root/nhrpd/nhrp_interface.c
diff options
context:
space:
mode:
authorReuben Dowle <reuben.dowle@4rf.com>2021-03-11 13:51:58 +1300
committerReuben Dowle <reuben.dowle@4rf.com>2021-03-17 17:02:19 +1300
commit74e5ba3a3f9d50e946095df07cfdeb9e67d1a78b (patch)
treeee3361a975dfaeac572e1e520d82aae727b42596 /nhrpd/nhrp_interface.c
parent083bbfaebfe094d52e5125172aedd12c6ac4a958 (diff)
nhrpd: Make comments clearer, fix style issues
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
Diffstat (limited to 'nhrpd/nhrp_interface.c')
-rw-r--r--nhrpd/nhrp_interface.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nhrpd/nhrp_interface.c b/nhrpd/nhrp_interface.c
index a328a91b18..9f531cf6be 100644
--- a/nhrpd/nhrp_interface.c
+++ b/nhrpd/nhrp_interface.c
@@ -464,15 +464,13 @@ void nhrp_interface_set_protection(struct interface *ifp, const char *profile,
{
struct nhrp_interface *nifp = ifp->info;
- if (nifp->ipsec_profile)
- {
+ if (nifp->ipsec_profile) {
vici_terminate_vc_by_profile_name(nifp->ipsec_profile);
free(nifp->ipsec_profile);
}
nifp->ipsec_profile = profile ? strdup(profile) : NULL;
- if (nifp->ipsec_fallback_profile)
- {
+ if (nifp->ipsec_fallback_profile) {
vici_terminate_vc_by_profile_name(nifp->ipsec_fallback_profile);
free(nifp->ipsec_fallback_profile);
}