summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_pkt.c
diff options
context:
space:
mode:
authorbeck <>2014-04-14 18:53:14 +0000
committerbeck <>2014-04-14 18:53:14 +0000
commit715a2c58fe812af3f07885ee27a3fc208e84c5ce (patch)
tree832550e82afe0db5c3fc97737827638ec3ed0b7f /src/lib/libssl/d1_pkt.c
parent95635d69892027aae43126c720bdf465c55b75b4 (diff)
downloadopenbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.tar.gz
openbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.tar.bz2
openbsd-715a2c58fe812af3f07885ee27a3fc208e84c5ce.zip
Flense all use of BIO_snprintf from ssl source - use the real one instead,
and allow for the normal posix mandated return values instead of the nonstandard one from BIO_snprintf. ok miod@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r--src/lib/libssl/d1_pkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c
index 830dc2d2d0..cb5f2c3199 100644
--- a/src/lib/libssl/d1_pkt.c
+++ b/src/lib/libssl/d1_pkt.c
@@ -1117,7 +1117,7 @@ start:
1117 s->rwstate = SSL_NOTHING; 1117 s->rwstate = SSL_NOTHING;
1118 s->s3->fatal_alert = alert_descr; 1118 s->s3->fatal_alert = alert_descr;
1119 SSLerr(SSL_F_DTLS1_READ_BYTES, SSL_AD_REASON_OFFSET + alert_descr); 1119 SSLerr(SSL_F_DTLS1_READ_BYTES, SSL_AD_REASON_OFFSET + alert_descr);
1120 BIO_snprintf(tmp, sizeof tmp, "%d", alert_descr); 1120 (void) snprintf(tmp,sizeof tmp,"%d",alert_descr);
1121 ERR_add_error_data(2, "SSL alert number ", tmp); 1121 ERR_add_error_data(2, "SSL alert number ", tmp);
1122 s->shutdown|=SSL_RECEIVED_SHUTDOWN; 1122 s->shutdown|=SSL_RECEIVED_SHUTDOWN;
1123 SSL_CTX_remove_session(s->ctx, s->session); 1123 SSL_CTX_remove_session(s->ctx, s->session);