Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib/base Merge 85acd57c8a28...
details: https://anonhg.NetBSD.org/src/rev/20146fa2436c
branches: trunk
changeset: 966395:20146fa2436c
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Oct 28 18:12:54 2019 +0000
description:
Merge 85acd57c8a288ce92f42bcf62737eebe385bce90 from Heimdal on Github:
Fix the numeric error value comparison performed by error_cmp().
diffstat:
crypto/external/bsd/heimdal/dist/lib/base/error.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 17f04445d88f -r 20146fa2436c crypto/external/bsd/heimdal/dist/lib/base/error.c
--- a/crypto/external/bsd/heimdal/dist/lib/base/error.c Mon Oct 28 18:12:17 2019 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/base/error.c Mon Oct 28 18:12:54 2019 +0000
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index