Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2003 03:20:06 -0800 (PST)
From:      GB Clark <gclarkii@vsservices.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/42429: hash_action called with HASH_DELETE does NOT return 1 if the key is not found
Message-ID:  <200301091120.h09BK6Qc035373@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/42429; it has been noted by GNATS.

From: GB Clark <gclarkii@vsservices.com>
To: freebsd-gnats-submit@FreeBSD.org, gclarkii@vsservices.com
Cc:  
Subject: Re: misc/42429: hash_action called with HASH_DELETE does NOT return
 1 if the key is not found
Date: Thu, 09 Jan 2003 01:31:16 -0600

 This is a multi-part message in MIME format.
 --------------050205080802030702020100
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Hello,
 
 Attached is a patch to correct this bug.
 
 GB
 
 -- 
 GB Clark II             | Roaming FreeBSD Admin
 gclarkii@VSServices.COM | General Geek
             CTHULU for President - Why choose the lesser of two evils?
 
 --------------050205080802030702020100
 Content-Type: text/plain;
  name="db.patch.1.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="db.patch.1.txt"
 
 *** hash.c	Wed Sep  4 17:13:22 2002
 --- hash.c.patched	Wed Sep  4 17:11:03 2002
 ***************
 *** 685,692 ****
   			save_bufp->flags &= ~BUF_PIN;
   			return (SUCCESS);
   		}
 - 	case HASH_GET:
   	case HASH_DELETE:
   	default:
   		save_bufp->flags &= ~BUF_PIN;
   		return (ABNORMAL);
 --- 685,693 ----
   			save_bufp->flags &= ~BUF_PIN;
   			return (SUCCESS);
   		}
   	case HASH_DELETE:
 + 		return 1;
 + 	case HASH_GET:
   	default:
   		save_bufp->flags &= ~BUF_PIN;
   		return (ABNORMAL);
 
 --------------050205080802030702020100--
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301091120.h09BK6Qc035373>