Bug 157571 - net-mgmt/p5-SNMP_Session crashes when reporting IPv6 errors (patch included)
Summary: net-mgmt/p5-SNMP_Session crashes when reporting IPv6 errors (patch included)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 01:50 UTC by Mike Andrews
Modified: 2011-07-04 13:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Andrews 2011-06-04 01:50:07 UTC
	SNMP_Session.pm uses inet_ntop when reporting failures on IPv6 hosts, but
	that function isn't being imported from Socket6.pm.

Fix: 

In net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm
	change both instances of
		Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
	to
		Socket6->import(qw(pack_sockaddr_in6 inet_pton inet_ntop getaddrinfo));
How-To-Repeat: 	Configure a v6 host in MRTG that is down, and watch MRTG crash when it tries
	to print its error message.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-06-04 01:50:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Mike Andrews 2011-06-04 22:45:27 UTC
unpack_sockaddr_in6 may also be necessary under Perl 5.12.3.
Comment 3 dfilter service freebsd_committer freebsd_triage 2011-07-04 12:57:52 UTC
demon       2011-07-04 11:57:38 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/p5-SNMP_Session/files patch-SNMP_Session.pm 
  Log:
  Fix crash when reporting IPv6 error.
  
  PR:     157571
  Submitted by:   Mike Andrews <mandrews@bit0.com>
  
  Revision  Changes    Path
  1.2       +2 -2      ports/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Dmitry Sivachenko freebsd_committer freebsd_triage 2011-07-04 12:58:03 UTC
State Changed
From-To: open->closed

Fix committed, pls re-check if it works.