aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-10 22:00:48 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-14 20:43:52 +0200
commit0c873a06b6bc9b05d6a54a22246c70f89944b634 (patch)
tree2c6cc57e3f4d769df11100b0c001ce76da1f74b3 /openbsc/src/vty_interface_layer3.c
parentba87f458ec744e97b4456832ec37f612bd513508 (diff)
vty/auth: Make sure we clear the last tuple when changing auth params
If the Ki or auth algo changes, chances are that the last tuple cannot be used anymore, so clear it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r--openbsc/src/vty_interface_layer3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index bf88fc09..b5af0ab7 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -485,6 +485,9 @@ DEFUN(ena_subscr_a3a8,
return CMD_WARNING;
}
+ /* the last tuple probably invalid with the new auth settings */
+ db_sync_lastauthtuple_for_subscr(NULL, subscr);
+
return rc ? CMD_WARNING : CMD_SUCCESS;
}