aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 08:40:55 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-24 08:40:55 +0100
commitb3121c5b3f1f76c742ce36b75951ef8a3fde46ae (patch)
treebd6ff8ceaeeb58f873740162d5a23abb68000eb1 /openbsc/src/bsc_hack.c
parentf5284ae1cf8babc1567b33f469e20a66a73fcd9e (diff)
ipa: Handle corrupt incoming messages without crashing
Attempt to read the three byte IPA header. If we read 0 then the socket can be closed otherwise we need to read three bytes, if we don't we do have a failure. After having parsed the header we need to evaluate the length, if the length is bigger than would fit into our buffer we will ignore that and print an error. This is fixing a crash when the BTS is crashing...
Diffstat (limited to 'openbsc/src/bsc_hack.c')
0 files changed, 0 insertions, 0 deletions