BSSMAP_Emulation: handle zero-length L3 Info in f_bssap_l3_is_rr()

Change-Id: I5666911d67388347d04724635cf6f56e164a82f8
This commit is contained in:
Harald Welte 2018-03-18 21:31:07 +01:00
parent edbab816ba
commit 96505f0fa0
1 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,9 @@ private function f_bssap_l3_is_rr(PDU_BSSAP bssap) return boolean {
return false;
}
var octetstring l3v := valueof(l3);
if (lengthof(l3v) < 1) {
return false;
}
/* lower 4 bits of first octet are protocol discriminator */
if ((oct2bit(l3v[0]) and4b '00001111'B) == '00000110'B) {
return true;