Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib ensure that we have ...
details: https://anonhg.NetBSD.org/src/rev/b6bce5d93e9f
branches: trunk
changeset: 752841:b6bce5d93e9f
user: agc <agc%NetBSD.org@localhost>
date: Mon Mar 08 08:56:03 2010 +0000
description:
ensure that we have an element in the array before we try to store a value
in it.
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/keyring.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 11af2ded3ad5 -r b6bce5d93e9f crypto/external/bsd/netpgp/dist/src/lib/keyring.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/keyring.c Mon Mar 08 07:42:46 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/keyring.c Mon Mar 08 08:56:03 2010 +0000
@@ -57,7 +57,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: keyring.c,v 1.30 2010/03/08 07:37:24 agc Exp $");
+__RCSID("$NetBSD: keyring.c,v 1.31 2010/03/08 08:56:03 agc Exp $");
#endif
#ifdef HAVE_FCNTL_H
@@ -609,9 +609,9 @@
case OPS_PARSER_ERRCODE:
break;
case OPS_PTAG_SS_KEY_EXPIRY:
+ EXPAND_ARRAY(keyring, key);
keyring->keys[keyring->keyc].key.pubkey.duration = pkt->u.ss_time.time;
break;
-
default:
break;
}
Home |
Main Index |
Thread Index |
Old Index