artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78f629
)
No need to do "size = (size_t)sb.st_size" both before and after
author
jsg
<jsg@openbsd.org>
Tue, 21 Apr 2015 01:44:47 +0000
(
01:44
+0000)
committer
jsg
<jsg@openbsd.org>
Tue, 21 Apr 2015 01:44:47 +0000
(
01:44
+0000)
a fstat() call.
ok mikeb@ markus@
sbin/isakmpd/ike_auth.c
patch
|
blob
|
history
diff --git
a/sbin/isakmpd/ike_auth.c
b/sbin/isakmpd/ike_auth.c
index
bd122a6
..
d617b74
100644
(file)
--- a/
sbin/isakmpd/ike_auth.c
+++ b/
sbin/isakmpd/ike_auth.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ike_auth.c,v 1.11
2 2014/08/25 08:00:48 doug Exp $
*/
+/* $OpenBSD: ike_auth.c,v 1.11
3 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");