summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/ssl_task.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-04-15 11:50:18 +0000
committerjsg <jsg@openbsd.org>2014-04-15 11:50:18 +0000
commita5ded1055c4a999120374cd3283b2e17b89cc517 (patch)
tree2f05ceab25ce2d3e41c364531b64b344c7dd450c /lib/libssl/src/ssl/ssl_task.c
parentcatch directories we don't have the right to enter instead of letting Find (diff)
downloadwireguard-openbsd-a5ded1055c4a999120374cd3283b2e17b89cc517.tar.xz
wireguard-openbsd-a5ded1055c4a999120374cd3283b2e17b89cc517.zip
correct cases of code occuring directly after goto/break/return
ok miod@ guenther@
Diffstat (limited to 'lib/libssl/src/ssl/ssl_task.c')
-rw-r--r--lib/libssl/src/ssl/ssl_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/ssl_task.c b/lib/libssl/src/ssl/ssl_task.c
index 25d20b06a0b..be0319831ab 100644
--- a/lib/libssl/src/ssl/ssl_task.c
+++ b/lib/libssl/src/ssl/ssl_task.c
@@ -322,14 +322,14 @@ doit(io_channel chan, SSL_CTX *s_ctx )
}
if (length < RPC_HDR_SIZE ) {
printf("Error in main loop get size: %d\n", length );
- break;
link_state = 3;
+ break;
}
if (msg.channel != 'A' ) {
printf("Error in main loop, unexpected channel: %c\n",
msg.channel );
- break;
link_state = 3;
+ break;
}
if (msg.function == 'G' ) {
link_state = 1;