pkgsrc/net/kdenetwork3/patches/patch-ad
skrll 42861251c2 Update KDE to the 3.0.5a distribution. Packages are numbered 3.0.5.1 or
1.0.5.1 accordingly.

Fixes and changes are:

Multiple vulnerabilities.

kdelibs
	KHTML : Fixed several crashes and misrenderings.
	rlogin.protocol: fixed command execution in specially crafted
	urls.

kdebase
	KAddressbook: Don't squeeze columns on startup/properly restore
	column width settings.

kdenetwork
	lisa, reslisa: Fixed several security vulnerabilities.

kdesdk
	Cervisia: Show long lines in diff view always completely.
2003-01-02 09:12:19 +00:00

49 lines
1.4 KiB
Text

$NetBSD: patch-ad,v 1.2 2003/01/02 09:12:30 skrll Exp $
--- kppp/pppstats.cpp.orig Mon Dec 16 03:02:45 2002
+++ kppp/pppstats.cpp
@@ -218,27 +218,29 @@ bool PPPStats::initStats() {
strlcpy(ifr.ifr_name, unitName, sizeof(ifr.ifr_name));
+ local_ip_address = "";
if (ioctl(s, SIOCGIFADDR, &ifr) < 0) {
- }
+ kdDebug(5002) << "Cannot get ip address" << endl;
+ } else {
+ sinp = (struct sockaddr_in*)&ifr.ifr_addr;
- sinp = (struct sockaddr_in*)&ifr.ifr_addr;
+ if(sinp->sin_addr.s_addr)
+ local_ip_address = inet_ntoa(sinp->sin_addr);
- if(sinp->sin_addr.s_addr)
- local_ip_address = inet_ntoa(sinp->sin_addr);
- else
- local_ip_address = "";
- kdDebug(5002) << "Local IP: " << local_ip_address << endl;
+ kdDebug(5002) << "Local IP: " << local_ip_address << endl;
+ }
- if (ioctl(s, SIOCGIFDSTADDR, &ifr) < 0)
- ;
+ remote_ip_address = "";
+ if (ioctl(s, SIOCGIFDSTADDR, &ifr) < 0) {
+ kdDebug(5002) << "Cannot get remote ip address" << endl;
+ } else {
+ sinp = (struct sockaddr_in*)&ifr.ifr_dstaddr;
- sinp = (struct sockaddr_in*)&ifr.ifr_dstaddr;
+ if(sinp->sin_addr.s_addr)
+ remote_ip_address = inet_ntoa(sinp->sin_addr);
- if(sinp->sin_addr.s_addr)
- remote_ip_address = inet_ntoa(sinp->sin_addr);
- else
- remote_ip_address = "";
- kdDebug(5002) << "Remote IP: " << remote_ip_address << endl;
+ kdDebug(5002) << "Remote IP: " << remote_ip_address << endl;
+ }
return true;