Date: Fri, 01 Feb 2019 23:45:52 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 42429] [libc] [patch] hash_action called with HASH_DELETE does NOT return 1 if the key is not found Message-ID: <bug-42429-227-ijrXitUhkC@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-42429-227@https.bugs.freebsd.org/bugzilla/> References: <bug-42429-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D42429 Andriy Voskoboinyk <avos@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed CC| |avos@freebsd.org Resolution|--- |Works As Intended --- Comment #4 from Andriy Voskoboinyk <avos@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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-42429-227-ijrXitUhkC>