summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
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 f73ac183f..4313e9f26 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 *
@@ -115,7 +115,7 @@ auth2_read_banner(void)
115 close(fd); 115 close(fd);
116 return (NULL); 116 return (NULL);
117 } 117 }
118 if (st.st_size > 1*1024*1024) { 118 if (st.st_size <= 0 || st.st_size > 1*1024*1024) {
119 close(fd); 119 close(fd);
120 return (NULL); 120 return (NULL);
121 } 121 }