1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 01.fix-netrc-sigsegv.dpatch by Nico Golde <nico@ngolde.de>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad trunk~/netrc.c trunk/netrc.c
9
--- trunk~/netrc.c 2006-01-22 15:35:41.000000000 +0100
10
+++ trunk/netrc.c 2006-02-01 19:58:16.000000000 +0100
12
free_netrc(netrc_entry *a) {
14
netrc_entry *n = a->next;
15
- memset(a->password, 0x55, strlen(a->password));
17
+ if (a->password != NULL) {
18
+ memset(a->password, 0x55, strlen(a->password));