summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsg <>2014-04-15 11:50:18 +0000
committerjsg <>2014-04-15 11:50:18 +0000
commitab563839bbe3ddf11336b51c80c7fb09adb04abb (patch)
tree7142b6a1c5841d7accb0f47c661cd45fbec445f4 /src
parent90444fe6d595b6409213e69d37914c6ae72c723d (diff)
downloadopenbsd-ab563839bbe3ddf11336b51c80c7fb09adb04abb.tar.gz
openbsd-ab563839bbe3ddf11336b51c80c7fb09adb04abb.tar.bz2
openbsd-ab563839bbe3ddf11336b51c80c7fb09adb04abb.zip
correct cases of code occuring directly after goto/break/return
ok miod@ guenther@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c1
-rw-r--r--src/lib/libssl/d1_both.c2
-rw-r--r--src/lib/libssl/src/crypto/x509/x509_vfy.c1
-rw-r--r--src/lib/libssl/src/ssl/d1_both.c2
-rw-r--r--src/lib/libssl/src/ssl/ssl_task.c4
5 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index 920066aeba..a82c2872e0 100644
--- a/src/lib/libcrypto/x509/x509_vfy.c
+++ b/src/lib/libcrypto/x509/x509_vfy.c
@@ -424,7 +424,6 @@ static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
424 ctx->current_cert = x; 424 ctx->current_cert = x;
425 ctx->current_issuer = issuer; 425 ctx->current_issuer = issuer;
426 return ctx->verify_cb(0, ctx); 426 return ctx->verify_cb(0, ctx);
427 return 0;
428} 427}
429 428
430/* Alternative lookup method: look from a STACK stored in other_ctx */ 429/* Alternative lookup method: look from a STACK stored in other_ctx */
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 6e51aa7f69..ab6b168410 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -647,8 +647,8 @@ dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok) {
647 647
648 item = pitem_new(seq64be, frag); 648 item = pitem_new(seq64be, frag);
649 if (item == NULL) { 649 if (item == NULL) {
650 goto err;
651 i = -1; 650 i = -1;
651 goto err;
652 } 652 }
653 653
654 pqueue_insert(s->d1->buffered_messages, item); 654 pqueue_insert(s->d1->buffered_messages, item);
diff --git a/src/lib/libssl/src/crypto/x509/x509_vfy.c b/src/lib/libssl/src/crypto/x509/x509_vfy.c
index 920066aeba..a82c2872e0 100644
--- a/src/lib/libssl/src/crypto/x509/x509_vfy.c
+++ b/src/lib/libssl/src/crypto/x509/x509_vfy.c
@@ -424,7 +424,6 @@ static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer)
424 ctx->current_cert = x; 424 ctx->current_cert = x;
425 ctx->current_issuer = issuer; 425 ctx->current_issuer = issuer;
426 return ctx->verify_cb(0, ctx); 426 return ctx->verify_cb(0, ctx);
427 return 0;
428} 427}
429 428
430/* Alternative lookup method: look from a STACK stored in other_ctx */ 429/* Alternative lookup method: look from a STACK stored in other_ctx */
diff --git a/src/lib/libssl/src/ssl/d1_both.c b/src/lib/libssl/src/ssl/d1_both.c
index 6e51aa7f69..ab6b168410 100644
--- a/src/lib/libssl/src/ssl/d1_both.c
+++ b/src/lib/libssl/src/ssl/d1_both.c
@@ -647,8 +647,8 @@ dtls1_reassemble_fragment(SSL *s, struct hm_header_st* msg_hdr, int *ok) {
647 647
648 item = pitem_new(seq64be, frag); 648 item = pitem_new(seq64be, frag);
649 if (item == NULL) { 649 if (item == NULL) {
650 goto err;
651 i = -1; 650 i = -1;
651 goto err;
652 } 652 }
653 653
654 pqueue_insert(s->d1->buffered_messages, item); 654 pqueue_insert(s->d1->buffered_messages, item);
diff --git a/src/lib/libssl/src/ssl/ssl_task.c b/src/lib/libssl/src/ssl/ssl_task.c
index 25d20b06a0..be0319831a 100644
--- a/src/lib/libssl/src/ssl/ssl_task.c
+++ b/src/lib/libssl/src/ssl/ssl_task.c
@@ -322,14 +322,14 @@ doit(io_channel chan, SSL_CTX *s_ctx )
322 } 322 }
323 if (length < RPC_HDR_SIZE ) { 323 if (length < RPC_HDR_SIZE ) {
324 printf("Error in main loop get size: %d\n", length ); 324 printf("Error in main loop get size: %d\n", length );
325 break;
326 link_state = 3; 325 link_state = 3;
326 break;
327 } 327 }
328 if (msg.channel != 'A' ) { 328 if (msg.channel != 'A' ) {
329 printf("Error in main loop, unexpected channel: %c\n", 329 printf("Error in main loop, unexpected channel: %c\n",
330 msg.channel ); 330 msg.channel );
331 break;
332 link_state = 3; 331 link_state = 3;
332 break;
333 } 333 }
334 if (msg.function == 'G' ) { 334 if (msg.function == 'G' ) {
335 link_state = 1; 335 link_state = 1;