mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
a35c296b6b
commit
15596899a3
|
@ -217,6 +217,7 @@ static int vty_nse_remove_vbind(struct vty_nse *vnse, struct vty_bind *vbind)
|
||||||
if (vnse_bind->vbind == vbind) {
|
if (vnse_bind->vbind == vbind) {
|
||||||
llist_del(&vnse_bind->list);
|
llist_del(&vnse_bind->list);
|
||||||
talloc_free(vnse_bind);
|
talloc_free(vnse_bind);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue