Skip to content

CID 1508985: Unchecked return value #10223

@maskit

Description

@maskit
 65  case AF_INET6: {
 66    sockaddr_in6 sa6;
 67
   	
CID 1508985 (#2 of 2): Unchecked return value (CHECKED_RETURN)
2. check_return: Calling inet_pton without checking return value (as is done elsewhere 8 out of 10 times).
 68    inet_pton(AF_INET6, ip.c_str(), &(sa6.sin6_addr));
 69    sa6.sin6_family = AF_INET6;
 70    return hasher(reinterpret_cast<const sockaddr *>(&sa6));
 71  } break;

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions