Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 944505 Details for
Bug 1150014
apply updates even when dbx isn't there yet
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[2/4] esl_htable_create(): create empty hash table for (dbx_len == 0)
2-esl_htable_create-create-empty-hash-table-for-dbx_len-0-.patch (text/plain), 950 bytes, created by
Laszlo Ersek
on 2014-10-07 10:17:09 UTC
(
hide
)
Description:
[2/4] esl_htable_create(): create empty hash table for (dbx_len == 0)
Filename:
MIME Type:
Creator:
Laszlo Ersek
Created:
2014-10-07 10:17:09 UTC
Size:
950 bytes
patch
obsolete
>From 158a51f327b3c614d8a36bf9f4b8676be9e65460 Mon Sep 17 00:00:00 2001 >From: Laszlo Ersek <lersek@redhat.com> >Date: Tue, 7 Oct 2014 10:02:04 +0200 >Subject: [PATCH] esl_htable_create(): create empty hash table for (dbx_len == > 0) > >In one of the next patches, a call to esl_htable_create() will become >possible with (dbx_len == 0). Treat this condition as > > dbx entirely absent > >and create an empty hash table accordingly. > >Signed-off-by: Laszlo Ersek <lersek@redhat.com> >--- > src/eslhtable.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/src/eslhtable.c b/src/eslhtable.c >index 19afe5f..6b10c4d 100644 >--- a/src/eslhtable.c >+++ b/src/eslhtable.c >@@ -65,6 +65,11 @@ esl_htable_create(struct htable *ht, uint8_t *dbx_buf, size_t dbx_len) > int rc; > int ret = 0; > >+ if (dbx_len == 0) { >+ htable_init(ht, esl_htable_rehash, NULL); >+ return 0; >+ } >+ > rc = esd_iter_new(&iter, dbx_buf, dbx_len); > if (rc < 0) > err(1, NULL); >-- >1.8.3.1 >
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
Actions:
View
|
Diff
Attachments on
bug 1150014
:
944504
| 944505 |
944506
|
944507