1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

- Prevent fetchmail from crashing if the .netrc file does not contain

a password for a particular account.

- Bump PORTREVISION

Submitted by:	Craig Leres via Matthias Andree
This commit is contained in:
Simon Barner 2006-01-30 12:47:53 +00:00
parent 3b5981766e
commit 3cd0edaa2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154803
2 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,7 @@
PORTNAME= fetchmail
PORTVERSION= 6.3.2
PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= http://download.berlios.de/%SUBDIR%/ \
http://home.pages.de/~mandree/%SUBDIR%/ \

View File

@ -0,0 +1,15 @@
--- netrc.c (Revision 4683)
+++ netrc.c (Revision 4684)
@@ -314,8 +314,10 @@
free_netrc(netrc_entry *a) {
while(a) {
netrc_entry *n = a->next;
- memset(a->password, 0x55, strlen(a->password));
- xfree(a->password);
+ if (a->password != NULL) {
+ memset(a->password, 0x55, strlen(a->password));
+ free(a->password);
+ }
xfree(a->login);
xfree(a->host);
xfree(a);