Skip to content

Commit

Permalink
Ignore false positives in udpfromto.c
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 25, 2017
1 parent b25fa22 commit d5eb969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/util/udpfromto.c
Expand Up @@ -238,7 +238,7 @@ int recvfromto(int fd, void *buf, size_t len, int flags,
return recvfrom(fd, buf, len, flags, from, from_len);
#else
struct sockaddr_in *dst = (struct sockaddr_in *) to;
struct sockaddr_in *src = (struct sockaddr_in *) &si;
struct sockaddr_in *src = (struct sockaddr_in *) &si; //-V641

if (*to_len < sizeof(*dst)) {
errno = EINVAL;
Expand All @@ -255,7 +255,7 @@ int recvfromto(int fd, void *buf, size_t len, int flags,
return recvfrom(fd, buf, len, flags, from, from_len);
#else
struct sockaddr_in6 *dst = (struct sockaddr_in6 *) to;
struct sockaddr_in6 *src = (struct sockaddr_in6 *) &si;
struct sockaddr_in6 *src = (struct sockaddr_in6 *) &si; //-V641

if (*to_len < sizeof(*dst)) {
errno = EINVAL;
Expand Down

0 comments on commit d5eb969

Please sign in to comment.