diff options
author | Keith <keith@rhizomatica.org> | 2020-10-10 15:15:31 +0200 |
---|---|---|
committer | Keith <keith@rhizomatica.org> | 2020-10-12 13:11:25 +0200 |
commit | 080dcfaabef67880d64ae8e9bf36b52bb95e7bfc (patch) | |
tree | 505641d88c03e57a516633128b26a4a1d8f5ee8a | |
parent | cbc07bdd8208a7bdbc251f969fe19c9757cb370b (diff) |
Prevent Crash in show pdp-context from vty
Fix test for return value from gtp_pdp_getimsi() so
we do not call show_one_pdp() with an uninitialised pdp_t
Change-Id: Ic40429939b185f97c020dd3904e054fe860b91e8
-rw-r--r-- | ggsn/ggsn_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ggsn/ggsn_vty.c b/ggsn/ggsn_vty.c index 91ffe4e..fd2c6ad 100644 --- a/ggsn/ggsn_vty.c +++ b/ggsn/ggsn_vty.c @@ -903,7 +903,7 @@ DEFUN(show_pdpctx_imsi, show_pdpctx_imsi_cmd, if (argc > 2) { nsapi = atoi(argv[2]); - if (gtp_pdp_getimsi(ggsn->gsn, &pdp, imsi, nsapi)) { + if (!gtp_pdp_getimsi(ggsn->gsn, &pdp, imsi, nsapi)) { show_one_pdp(vty, pdp); num_found++; } |