From 0fa4a286ba723c8844fa71b2508c7570f16d7459 Mon Sep 17 00:00:00 2001 From: Mike Nordell Date: Wed, 22 Dec 2004 22:48:02 +0000 Subject: [PATCH] Fix order-of-evalutation bug-to-be svn path=/trunk/; revision=12292 --- reactos/lib/adns/src/transmit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/adns/src/transmit.c b/reactos/lib/adns/src/transmit.c index d2474a07b94..3e9dc27bd82 100644 --- a/reactos/lib/adns/src/transmit.c +++ b/reactos/lib/adns/src/transmit.c @@ -99,7 +99,8 @@ adns_status adns__mkquery(adns_state ads, vbuf *vb, int *id_r, if (!(flags & adns_qf_quoteok_query)) return adns_s_querydomaininvalid; if (ctype_digit(p[0])) { if (ctype_digit(p[1]) && ctype_digit(p[2])) { - c= (*p++ - '0')*100 + (*p++ - '0')*10 + (*p++ - '0'); + c= (p[0] - '0')*100 + (p[1] - '0')*10 + (p[0] - '0'); + p += 3; if (c >= 256) return adns_s_querydomaininvalid; } else { return adns_s_querydomaininvalid;