From 28f92b8382eb308b3f658746a7d19da48d2217c0 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 21 Apr 2015 01:44:47 +0000 Subject: [PATCH] No need to do "size = (size_t)sb.st_size" both before and after a fstat() call. ok mikeb@ markus@ --- sbin/isakmpd/ike_auth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/isakmpd/ike_auth.c b/sbin/isakmpd/ike_auth.c index bd122a6ceb2..d617b743349 100644 --- a/sbin/isakmpd/ike_auth.c +++ b/sbin/isakmpd/ike_auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike_auth.c,v 1.112 2014/08/25 08:00:48 doug Exp $ */ +/* $OpenBSD: ike_auth.c,v 1.113 2015/04/21 01:44:47 jsg Exp $ */ /* $EOM: ike_auth.c,v 1.59 2000/11/21 00:21:31 angelos Exp $ */ /* @@ -200,7 +200,6 @@ ike_auth_get_key(int type, char *id, char *local_id, size_t *keylen) free(keyfile); goto ignorekeynote; } - size = (size_t)sb.st_size; if (fstat(fd, &sb) < 0) { log_print("ike_auth_get_key: fstat failed"); -- 2.20.1