summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-12-19 10:52:50 +1100
committerDamien Miller <djm@mindrot.org>2011-12-19 10:52:50 +1100
commit8ed4de8f1dcebddd7edc0dd3c10f1cb947d831eb (patch)
tree3c9442e4dfcae3662f42cb53cccc7e45f98c0897 /auth2.c
parent913ddff40d090751d50be2339cd859505b24f65b (diff)
- djm@cvs.openbsd.org 2011/12/07 05:44:38
[auth2.c dh.c packet.c roaming.h roaming_client.c roaming_common.c] fix some harmless and/or unreachable int overflows; reported Xi Wang, ok markus@
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2.c b/auth2.c
index c06c95f06..b66bef64c 100644
--- a/auth2.c
+++ b/auth2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2.c,v 1.123 2011/03/10 02:52:57 djm Exp $ */ 1/* $OpenBSD: auth2.c,v 1.124 2011/12/07 05:44:38 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -113,7 +113,7 @@ auth2_read_banner(void)
113 close(fd); 113 close(fd);
114 return (NULL); 114 return (NULL);
115 } 115 }
116 if (st.st_size > 1*1024*1024) { 116 if (st.st_size <= 0 || st.st_size > 1*1024*1024) {
117 close(fd); 117 close(fd);
118 return (NULL); 118 return (NULL);
119 } 119 }