aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-22 14:16:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-30 21:50:30 +0200
commit1e4019483fd4914c0cd13af81404a8db24e976d3 (patch)
tree2129a07bf20533018f670f34f9bfaff70cc775c5 /tests
parent5a8cca3a1c25947b5f7a4ede92b7ae237c708e02 (diff)
ipaccess: improve error handling
If we hit any error, spot an error message containing the reason and close the links to start over. This patch has been tested by injecting errors in: * ipaccess_send, by randomly returning -1. * returning error from the ->sign_link_up callback, both from the OML and RSL links. * returning error from the ->sign_link callback, both for the OML and RSL links. With this patch, Valgrind shows no "definitely lost" memory blocks anymore (including the error path that has been tested) and the ipaccess driver behaves more robustly in case of errors. Acked-by: Holger Freyther <holger@freyther.de>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions