]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix typo in rev.13574
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Sep 2014 03:51:50 +0000 (15:51 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 14 Sep 2014 03:51:50 +0000 (15:51 +1200)
src/snmp_core.cc

index 77b830f9a1db1092248ada0e3d547aff3b05dcb9..483be13d060470a7d5dd358fe3da6f216e78d7f8 100644 (file)
@@ -352,7 +352,7 @@ snmpHandleUdp(int sock, void *not_used)
 
     memset(buf, '\0', sizeof(buf));
 
-    len = comm_udp_recvfrom(sock, sizeof(buf)-1, 0, from);
+    len = comm_udp_recvfrom(sock, buf, sizeof(buf)-1, 0, from);
 
     if (len > 0) {
         debugs(49, 3, "snmpHandleUdp: FD " << sock << ": received " << len << " bytes from " << from << ".");