diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-10-06 12:59:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-06 14:13:09 -0400 |
commit | 2412e0e4024325608b551f74140e449d2016916f (patch) | |
tree | 0d0e79f3cb282aec7b0d5b95ea8fea84a27a745d /src | |
parent | 103c861dfead6640a4bef6e85f740f7c635c7343 (diff) | |
download | tor-2412e0e4024325608b551f74140e449d2016916f.tar.gz tor-2412e0e4024325608b551f74140e449d2016916f.zip |
Check return of init_keys() ip_address_changed: fix Coverity CID 484
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 289d805503..c011c9b46e 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1378,7 +1378,8 @@ ip_address_changed(int at_interface) if (at_interface) { if (! server) { /* Okay, change our keys. */ - init_keys(); + if (init_keys()<0) + log_warn(LD_GENERAL, "Unable to rotate keys after IP change!"); } } else { if (server) { |