[Bug 42429] [libc] [patch] hash_action called with HASH_DELETE does NOT return 1 if the key is not found

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 1 23:45:55 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=42429

Andriy Voskoboinyk <avos at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |Closed
                 CC|                            |avos at freebsd.org
         Resolution|---                         |Works As Intended

--- Comment #4 from Andriy Voskoboinyk <avos at freebsd.org> ---
As I can see from the code and / or attached patch hash_access() with
HASH_DELETE parameter when the key is not found already returns 1 - that's the
value of ABNORMAL macro:

/* Return values */
#define SUCCESS  (0)
#define ERROR   (-1)
#define ABNORMAL (1)

so the patch is actually no-op.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list