aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-12 03:08:42 +0100
committerlaforge <laforge@osmocom.org>2021-02-12 08:57:34 +0000
commitb7921738be929520dfe63b7a8ed7dc2f78cee1f9 (patch)
tree5d5ba42712dc9f73ce0f7ba57165088139c04fd7
parentfa4121de2fdc93a8449702171e3b20e34b59dbba (diff)
gprs_ns2_vty: use strcmp() instead of strncmp()
Otherwise substring wouldn't be detected. E.g. local vs local2 Change-Id: I183b5176a1d8a295b7551ad186b3565adeb3d5e7
-rw-r--r--src/gb/gprs_ns2_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 55f88b15..0a0a5d35 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -102,7 +102,7 @@ static struct vty_bind *vty_bind_by_name(const char *name)
{
struct vty_bind *vbind;
llist_for_each_entry(vbind, &binds, list) {
- if (!strncmp(vbind->name, name, strlen(vbind->name)))
+ if (!strcmp(vbind->name, name))
return vbind;
}
return NULL;