gprs_ns2: vty: fix removing a bind from a SNS

Return 0 after removing a bind. Otherwise the vty would return a
wrong error to the user.

Change-Id: I088c18abafc82ae7bd7b8c487ad9e9b448c42ba9
This commit is contained in:
Alexander Couzens 2021-04-19 03:31:05 +02:00 committed by laforge
parent a35c296b6b
commit 15596899a3
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ static int vty_nse_remove_vbind(struct vty_nse *vnse, struct vty_bind *vbind)
if (vnse_bind->vbind == vbind) {
llist_del(&vnse_bind->list);
talloc_free(vnse_bind);
return 0;
}
}