Bugzilla – Attachment 1236 Details for
Bug 1281
getrrsetbyname() does not check the presence of SIG records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against 4.4p1
patch (text/plain), 587 bytes, created by
Simon Vallet
on 2007-02-10 00:58:08 AEDT
(
hide
)
Description:
Patch against 4.4p1
Filename:
MIME Type:
Creator:
Simon Vallet
Created:
2007-02-10 00:58:08 AEDT
Size:
587 bytes
patch
obsolete
>--- openbsd-compat/getrrsetbyname.c.orig 2007-02-09 14:35:51.000000000 +0100 >+++ openbsd-compat/getrrsetbyname.c 2007-02-09 14:39:35.000000000 +0100 >@@ -303,10 +303,12 @@ > } > > /* allocate memory for signatures */ >- rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo)); >- if (rrset->rri_sigs == NULL) { >- result = ERRSET_NOMEMORY; >- goto fail; >+ if (rrset->rri_nsigs) { >+ rrset->rri_sigs = calloc(rrset->rri_nsigs, sizeof(struct rdatainfo)); >+ if (rrset->rri_sigs == NULL) { >+ result = ERRSET_NOMEMORY; >+ goto fail; >+ } > } > > /* copy answers & signatures */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1281
: 1236