Merge 85acd57c8a288ce92f42bcf62737eebe385bce90 from Heimdal on Github:
Fix the numeric error value comparison performed by error_cmp().
This commit is contained in:
parent
7e53a6c032
commit
165a21a871
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: error.c,v 1.2 2017/01/28 21:31:45 christos Exp $ */
|
||||
/* $NetBSD: error.c,v 1.3 2019/10/28 18:12:54 joerg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Kungliga Tekniska Högskolan
|
||||
@ -55,8 +55,8 @@ static int
|
||||
error_cmp(void *a, void *b)
|
||||
{
|
||||
struct heim_error *ap = a, *bp = b;
|
||||
if (ap->error_code == ap->error_code)
|
||||
return ap->error_code - ap->error_code;
|
||||
if (ap->error_code == bp->error_code)
|
||||
return 0;
|
||||
return heim_cmp(ap->msg, bp->msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user