aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-18 21:31:04 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-18 21:31:04 -0700
commit8dc1cb91df32d6908843498d03dc4b05942bca04 (patch)
treef08047759a2b34faf264c91696ef619648695336 /src
parent9a224b54913818db3080b13cc1183d5bb3926247 (diff)
downloadnng-8dc1cb91df32d6908843498d03dc4b05942bca04.tar.gz
nng-8dc1cb91df32d6908843498d03dc4b05942bca04.tar.bz2
nng-8dc1cb91df32d6908843498d03dc4b05942bca04.zip
Possible division by zero error (unset backoff start time).
Diffstat (limited to 'src')
-rw-r--r--src/core/endpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/endpt.c b/src/core/endpt.c
index 596329ab..ca76838a 100644
--- a/src/core/endpt.c
+++ b/src/core/endpt.c
@@ -414,6 +414,7 @@ nni_ep_listen(nni_ep *ep, int flags)
int rv = 0;
nni_sock_reconntimes(ep->ep_sock, &ep->ep_inirtime, &ep->ep_maxrtime);
+ ep->ep_currtime = ep->ep_inirtime;
nni_mtx_lock(&ep->ep_mtx);
if (ep->ep_mode != NNI_EP_MODE_LISTEN) {