diff options
author | barner <barner@FreeBSD.org> | 2006-01-30 20:47:53 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2006-01-30 20:47:53 +0800 |
commit | f8f6cb3b548d269e85e9ffd952826f6b67c7a9cc (patch) | |
tree | 0a764e4ff34247580b6dcc2b60bdd4328e43a6cd /mail/fetchmail/files | |
parent | e8db7961776c639647166fff2f7fb4fbea49c30f (diff) | |
download | freebsd-ports-gnome-f8f6cb3b548d269e85e9ffd952826f6b67c7a9cc.tar.gz freebsd-ports-gnome-f8f6cb3b548d269e85e9ffd952826f6b67c7a9cc.tar.zst freebsd-ports-gnome-f8f6cb3b548d269e85e9ffd952826f6b67c7a9cc.zip |
- 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
Diffstat (limited to 'mail/fetchmail/files')
-rw-r--r-- | mail/fetchmail/files/patch-netrc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/fetchmail/files/patch-netrc.c b/mail/fetchmail/files/patch-netrc.c new file mode 100644 index 000000000000..fcd9bafc4f21 --- /dev/null +++ b/mail/fetchmail/files/patch-netrc.c @@ -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); |