Skip to content

Commit fd8d8f8

Browse files
committed
gtp-guard-1.0.5
1 parent b455c9b commit fd8d8f8

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

lib/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define LOG_FACILITY_MAX 7
2626
#define PROG "gtp-guard"
2727
#define PROG_PID_FILE "/var/run/gtp-guard.pid"
28-
#define VERSION_STRING PROG " v1.0.4 (2024/04/15)"
28+
#define VERSION_STRING PROG " v1.0.5 (2024/06/22)"
2929
#define COPYRIGHT_STRING "Copyright (C) 2023-2024 Alexandre Cassen, <acassen@gmail.com>"
3030

3131

src/gtp_apn.c

-7
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,6 @@ DEFUN(apn_service_selection,
636636
"priority\n")
637637
{
638638
gtp_apn_t *apn = vty->index;
639-
gtp_naptr_t *naptr;
640639
int prio = 0;
641640

642641
if (argc < 1) {
@@ -647,12 +646,6 @@ DEFUN(apn_service_selection,
647646
if (argc >= 1)
648647
prio = atoi(argv[1]);
649648

650-
naptr = gtp_naptr_get(apn, argv[0]);
651-
if (!naptr) {
652-
vty_out(vty, "%% unknown service %s. Preparing for futur use%s"
653-
, argv[0], VTY_NEWLINE);
654-
}
655-
656649
gtp_service_alloc(apn, argv[0], prio);
657650
__set_bit(GTP_RESOLV_FL_SERVICE_SELECTION, &apn->flags);
658651

src/gtp_switch_vty.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ DEFUN(gtp_switch_session_expiration_timeout_delete,
120120
return CMD_WARNING;
121121
}
122122

123-
VTY_GET_INTEGER_RANGE("Expiration Timeout", timeout, argv[1], 5, 300);
123+
VTY_GET_INTEGER_RANGE("Expiration Timeout", timeout, argv[0], 5, 300);
124124
ctx->session_delete_to = timeout;
125125

126126
__set_bit(GTP_FL_SESSION_EXPIRATION_DELETE_TO_BIT, &ctx->flags);

0 commit comments

Comments
 (0)