summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--openbsd-compat/getrrsetbyname.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 74fea6302..8302ee1d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120040829
2 - (dtucker) [openbsd-compat/getrrsetbyname.c] Prevent getrrsetbyname from
3 failing with NOMEMORY if no sigs are returned and malloc(0) returns NULL.
4 From Martin.Kraemer at Fujitsu-Siemens.com; ok djm@
5
120040828 620040828
2 - (dtucker) [openbsd-compat/mktemp.c] Remove superfluous Cygwin #ifdef; from 7 - (dtucker) [openbsd-compat/mktemp.c] Remove superfluous Cygwin #ifdef; from
3 vinschen at redhat.com. 8 vinschen at redhat.com.
@@ -1664,4 +1669,4 @@
1664 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1669 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1665 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1670 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1666 1671
1667$Id: ChangeLog,v 1.3521 2004/08/28 06:17:35 dtucker Exp $ 1672$Id: ChangeLog,v 1.3522 2004/08/29 06:12:29 dtucker Exp $
diff --git a/openbsd-compat/getrrsetbyname.c b/openbsd-compat/getrrsetbyname.c
index 660427c1f..4e869c4df 100644
--- a/openbsd-compat/getrrsetbyname.c
+++ b/openbsd-compat/getrrsetbyname.c
@@ -277,7 +277,7 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
277 277
278 /* allocate memory for signatures */ 278 /* allocate memory for signatures */
279 rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo)); 279 rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo));
280 if (rrset->rri_sigs == NULL) { 280 if (rrset->rri_nsigs > 0 && rrset->rri_sigs == NULL) {
281 result = ERRSET_NOMEMORY; 281 result = ERRSET_NOMEMORY;
282 goto fail; 282 goto fail;
283 } 283 }