]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Kind of a follow-up to r14237.
authorJulian Seward <jseward@acm.org>
Wed, 20 Aug 2014 17:45:00 +0000 (17:45 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 20 Aug 2014 17:45:00 +0000 (17:45 +0000)
pre_mem_read_sockaddr: in the case where the caller doesn't
specify any address family (that is, the family is AF_UNSPEC)
don't perform any further checks on the supplied |sa| address
block, since doing so merely gives rise to false uninitialised
value errors.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14320

coregrind/m_syswrap/syswrap-generic.c

index 8c7c5518676bb24c1971fe9c1af69c065d59ca52..8bd42aa4be7aba894984ad2edbfe11531c0c0d81 100644 (file)
@@ -1085,6 +1085,11 @@ void pre_mem_read_sockaddr ( ThreadId tid,
          break;
 #     endif
 
+#     ifdef VKI_AF_UNSPEC
+      case VKI_AF_UNSPEC:
+         break;
+#     endif
+
       default:
          /* No specific information about this address family.
             Let's just check the full data following the family.