diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-08 15:30:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-08 15:30:50 +0000 |
commit | cafd01f8a46144b281cab0e04e447dca70c5351c (patch) | |
tree | 46f1a674200cdf09cddf18634bbcdab8bb544653 | |
parent | 109814f3a76757a989a8fe01de373a451b507ffc (diff) |
ctype cleanup; ok gilles
-rw-r--r-- | usr.sbin/smtpd/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index d437e58dc25..c9c9103eff1 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.104 2013/12/26 17:25:32 eric Exp $ */ +/* $OpenBSD: util.c,v 1.105 2014/01/08 15:30:49 deraadt Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -733,8 +733,8 @@ parse_smtp_response(char *line, size_t len, char **msg, int *cont) return "line too short"; /* validate reply code */ - if (line[0] < '2' || line[0] > '5' || !isdigit(line[1]) || - !isdigit(line[2])) + if (line[0] < '2' || line[0] > '5' || !isdigit((unsigned char)line[1]) || + !isdigit((unsigned char)line[2])) return "reply code out of range"; /* validate reply message */ |