Wireshark-commits: [Wireshark-commits] rev 54156: /trunk/epan/dissectors/ /trunk/epan/dissectors/:
Date: Mon, 16 Dec 2013 20:38:20 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=54156

User: wmeier
Date: 2013/12/16 08:38 PM

Log:
 From Peter Lemenkov:
 
  "This patch removes misleading dereferencing operator from the
   array's name. E.g. consider the following declaration:
 
   guint32 ipaddr[4];
 
   ipaddr points to the address of an array of guint32's, while &ipaddr
   points to the first' guint32 object. E.g. &ipaddr == &ipaddr[0]. The
   value is the same, but has different type which is necessary
   sometimes. However inet_pton treats latest argument as void*, and
   this information is left anyway. So no need to bother with types and
   let's just pass pointer to the array."
 
   https://bugs.wireshark.org/bugzilla/attachment.cgi?id=12304
 
 From me: Remove dereferencing operator from 'ipaddr' in two calls to
          wmem_memdup().

Directory: /trunk/epan/dissectors/
  Changes    Path                 Action
  +4 -4      packet-rtpproxy.c    Modified