diff options
author | Adam Langley <agl@google.com> | 2015-02-14 01:56:28 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-19 22:58:10 +0300 |
commit | d3459fb2f9c98a8fd60626c22ce40876d674dbaa (patch) | |
tree | 7d1f4a4e144a506c4cbdf6c55b30c99603f83860 | |
parent | b180ee98a60149dd3fd07cce4e834494c9d5b31c (diff) |
Don't randomly print stuff to stderr.
Change-Id: I821c546612bdd7fca2c3d6a043a4f888f928ee61
Reviewed-on: https://boringssl-review.googlesource.com/3470
Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r-- | ssl/d1_both.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 7891ed7b..e97106a7 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -902,7 +902,7 @@ int dtls1_send_change_cipher_spec(SSL *s, int a, int b) { int dtls1_read_failed(SSL *s, int code) { if (code > 0) { - fprintf(stderr, "invalid state reached %s:%d", __FILE__, __LINE__); + assert(0); return 1; } @@ -949,7 +949,6 @@ int dtls1_retransmit_buffered_messages(SSL *s) { frag->msg_header.seq, frag->msg_header.is_ccs), 0, &found) <= 0 && found) { - fprintf(stderr, "dtls1_retransmit_message() failed\n"); return -1; } } @@ -1026,7 +1025,7 @@ int dtls1_retransmit_message(SSL *s, unsigned short seq, unsigned long frag_off, item = pqueue_find(s->d1->sent_messages, seq64be); if (item == NULL) { - fprintf(stderr, "retransmit: message %d non-existant\n", seq); + assert(0); *found = 0; return 0; } |