one more null check
This commit is contained in:
parent
d0d1eaef89
commit
6d4a15d500
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,9 @@ static gboolean sock_check(GSource *source)
|
|||
fd_set fds;
|
||||
GIOCondition condition = sock->condition;
|
||||
|
||||
if (!sock || !sock->sock)
|
||||
return FALSE;
|
||||
|
||||
#if USE_OPENSSL
|
||||
if (sock->ssl) {
|
||||
if (condition & G_IO_IN) {
|
||||
|
|
Loading…
Reference in a new issue