From 0c873a06b6bc9b05d6a54a22246c70f89944b634 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Thu, 10 Jun 2010 22:00:48 +0200 Subject: 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 --- openbsc/src/vty_interface_layer3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbsc/src/vty_interface_layer3.c') diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c index bf88fc093..b5af0ab72 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; } -- cgit v1.2.3