[PATCH] mISDNuser: mISDNcapid: release B3 link properly when using CAPIFLAG_HIGHJACKING

Christoph Schulz <[email protected]> Sat, 11 Feb 2017 12:55:06 +0100
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Until now, B3ReleaseLink() did not care about BType_tty B3 links. This commit
makes them behave like BType_Direct links.

Signed-off-by: Christoph Schulz <[email protected]>
- ---
 capi20/lplci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/capi20/lplci.c b/capi20/lplci.c
index 61442d9..330febd 100644
- --- a/capi20/lplci.c
+++ b/capi20/lplci.c
@@ -2089,6 +2089,7 @@ void B3ReleaseLink(struct lPLCI *lp, struct BInstance *bi)
 {
 	switch(bi->type) {
 	case BType_Direct:
+	case BType_tty:
 		ncciReleaseLink(bi->b3data);
 		break;
 #ifdef USE_SOFTFAX
- -- 
2.10.2

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAlie+5oACgkQL11jCnyQ5OzE7wCeNLPk3kWa56FdS4USM4YsvcXP
XVQAn3C7ynyCBOCwnXzceGHQCdppXZdv
=Cmv5
-----END PGP SIGNATURE-----