X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/3d5cde09d167be1609d27d0d93de2096250a310c..1ec6769606f155e156ecbe1a69b97ecd89bbdb7c:/src/types.c diff --git a/src/types.c b/src/types.c index 5836a44..b1fdae7 100644 --- a/src/types.c +++ b/src/types.c @@ -8,7 +8,7 @@ * * It is part of adns, which is * Copyright (C) 1997-2000 Ian Jackson - * Copyright (C) 1999 Tony Finch + * Copyright (C) 1999-2000 Tony Finch * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -851,7 +851,7 @@ static adns_status pap_mailbox822(const parseinfo *pai, int *cbyte_io, int max, c= *p++; if ((c&~128) < 32 || (c&~128) == 127) return adns_s_invaliddata; if (c == '.' && !neednorm) neednorm= 1; - else if (c==' ' || ctype_822special(c)) needquote++; + else if (c==' ' || c>=127 || ctype_822special(c)) needquote++; else neednorm= 0; }