commit | 804383a8126481c116b3434903cb3f809f1f5eea | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Mar 24 08:40:55 2010 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Mar 24 08:40:55 2010 +0100 |
tree | bd6ff8ceaeeb58f873740162d5a23abb68000eb1 | |
parent | 9db68e69dfa294918c64be74bcf9feb03359b969 [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...