mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
explicit socketError() return value check in addressFromSockaddr() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
937b8c02ce
commit
25893dd3e6
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static QHostAddress addressFromSockaddr(sockaddr *sa)
|
|||
if (scope) {
|
||||
#ifndef QT_NO_IPV6IFNAME
|
||||
QSTACKARRAY(char, scopeid, IFNAMSIZ);
|
||||
if (::if_indextoname(scope, scopeid)) {
|
||||
if (::if_indextoname(scope, scopeid) != 0) {
|
||||
address.setScopeId(QString::fromLatin1(scopeid));
|
||||
} else
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue