ssld: avoid clang static analysis warning
This commit is contained in:
parent
8fc0cea653
commit
a21843a0a0
1 changed files with 1 additions and 1 deletions
|
@ -561,7 +561,6 @@ conn_mod_read_cb(rb_fde_t *fd, void *data)
|
||||||
{
|
{
|
||||||
char inbuf[READBUF_SIZE];
|
char inbuf[READBUF_SIZE];
|
||||||
conn_t *conn = data;
|
conn_t *conn = data;
|
||||||
const char *err = remote_closed;
|
|
||||||
int length;
|
int length;
|
||||||
if(conn == NULL)
|
if(conn == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -591,6 +590,7 @@ conn_mod_read_cb(rb_fde_t *fd, void *data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *err;
|
||||||
if(IsSSL(conn) && length == RB_RW_SSL_ERROR)
|
if(IsSSL(conn) && length == RB_RW_SSL_ERROR)
|
||||||
err = rb_get_ssl_strerror(conn->mod_fd);
|
err = rb_get_ssl_strerror(conn->mod_fd);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue