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>
This commit is contained in:
Adam Langley 2015-02-13 14:56:28 -08:00
parent b180ee98a6
commit d3459fb2f9

View File

@ -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;
}