summaryrefslogtreecommitdiffstats
path: root/ssl/d1_srvr.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-05-25 14:30:05 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-05-25 14:30:05 +0000
commit4159ac43aaa28b5d1fda7cc71b8fa65881057f5a (patch)
tree5cc251d1bb215626b73b76ff8370346c7fba9d73 /ssl/d1_srvr.c
parent419b09b053fdcb4306284061ca4477c2beefd2be (diff)
Oops use up to date patch for PR#2506
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r--ssl/d1_srvr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index 2d63199dd6..3a0b4d2dde 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -150,6 +150,7 @@ int dtls1_accept(SSL *s)
unsigned long alg_k;
int ret= -1;
int new_state,state,skip=0;
+ int listen;
RAND_add(&Time,sizeof(Time),0);
ERR_clear_error();
@@ -159,6 +160,8 @@ int dtls1_accept(SSL *s)
cb=s->info_callback;
else if (s->ctx->info_callback != NULL)
cb=s->ctx->info_callback;
+
+ listen = s->d1->listen;
/* init things to blank */
s->in_handshake++;
@@ -274,7 +277,7 @@ int dtls1_accept(SSL *s)
s->init_num=0;
/* If we're just listening, stop here */
- if (s->d1->listen && s->state == SSL3_ST_SW_SRVR_HELLO_A)
+ if (listen && s->state == SSL3_ST_SW_SRVR_HELLO_A)
{
ret = 2;
s->d1->listen = 0;