diff options
Diffstat (limited to 'debian/patches/ihash0001-libihash-fix-corner-case.patch')
-rw-r--r-- | debian/patches/ihash0001-libihash-fix-corner-case.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/debian/patches/ihash0001-libihash-fix-corner-case.patch b/debian/patches/ihash0001-libihash-fix-corner-case.patch deleted file mode 100644 index fc78156e..00000000 --- a/debian/patches/ihash0001-libihash-fix-corner-case.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 5dcebe3443c54e0dfcc6aa1fcd0713308a7fe8e1 Mon Sep 17 00:00:00 2001 -From: Justus Winter <justus@gnupg.org> -Date: Sat, 30 Apr 2016 00:03:40 +0200 -Subject: [PATCH hurd 1/2] libihash: fix corner case - -* libihash/ihash.c (hurd_ihash_locp_find): Set SLOT to NULL if the -hash table has not been allocated. ---- - libihash/ihash.c | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/libihash/ihash.c b/libihash/ihash.c -index ae1cf12..c6143a5 100644 ---- a/libihash/ihash.c -+++ b/libihash/ihash.c -@@ -418,7 +418,10 @@ hurd_ihash_locp_find (hurd_ihash_t ht, - int idx; - - if (ht->size == 0) -- return NULL; -+ { -+ *slot = NULL; -+ return NULL; -+ } - - idx = find_index (ht, key); - *slot = &ht->items[idx].value; --- -2.1.4 - |