Module Name: src Committed By: joerg Date: Mon Oct 28 18:12:54 UTC 2019
Modified Files: src/crypto/external/bsd/heimdal/dist/lib/base: error.c Log Message: Merge 85acd57c8a288ce92f42bcf62737eebe385bce90 from Heimdal on Github: Fix the numeric error value comparison performed by error_cmp(). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/crypto/external/bsd/heimdal/dist/lib/base/error.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/heimdal/dist/lib/base/error.c diff -u src/crypto/external/bsd/heimdal/dist/lib/base/error.c:1.2 src/crypto/external/bsd/heimdal/dist/lib/base/error.c:1.3 --- src/crypto/external/bsd/heimdal/dist/lib/base/error.c:1.2 Sat Jan 28 21:31:45 2017 +++ src/crypto/external/bsd/heimdal/dist/lib/base/error.c Mon Oct 28 18:12:54 2019 @@ -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); }