]> granicus.if.org Git - pdns/commitdiff
add warning for vigilant valgrind users
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 9 Jun 2016 07:22:00 +0000 (09:22 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 9 Jun 2016 07:22:00 +0000 (09:22 +0200)
pdns/misc.cc

index c2b796921f907db1baa6f86b5280f282b5caa27b..bca2bbd80eec94e9c26fcfb28cfea0df64f64a4f 100644 (file)
@@ -826,6 +826,9 @@ Regex::Regex(const string &expr)
     throw PDNSException("Regular expression did not compile");
 }
 
+// if you end up here because valgrind told you were are doing something wrong
+// with msgh->msg_controllen, please refer to https://github.com/PowerDNS/pdns/pull/3962
+// first.
 void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, const ComboAddress* source, int itfIndex)
 {
   struct cmsghdr *cmsg = NULL;