diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-09-09 17:05:42 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-09-09 17:05:42 +0000 |
commit | 53f062d0503e4f18e0a08c172df17c5ce5049e7a (patch) | |
tree | 02b41db26faa87a9276726e0ad797a4748642276 /ssl/d1_srvr.c | |
parent | b5b65403a4987ecb8b9d23754a3153df476fdfc0 (diff) |
PR: 2033
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Approved by: steve@openssl.org
DTLS listen support.
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r-- | ssl/d1_srvr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index 00536ad3cd..d79fb1985e 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -274,6 +274,15 @@ int dtls1_accept(SSL *s) s->state = SSL3_ST_SW_SRVR_HELLO_A; s->init_num=0; + + /* If we're just listening, stop here */ + if (s->d1->listen && s->state == SSL3_ST_SW_SRVR_HELLO_A) + { + ret = 2; + s->d1->listen = 0; + goto end; + } + break; case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A: |