mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Tamlin was tired. Now byte order should _really_ be fixed
svn path=/trunk/; revision=12294
This commit is contained in:
parent
0a7987564c
commit
3d7aa0b923
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ adns_status adns__mkquery(adns_state ads, vbuf *vb, int *id_r,
|
||||||
if (!(flags & adns_qf_quoteok_query)) return adns_s_querydomaininvalid;
|
if (!(flags & adns_qf_quoteok_query)) return adns_s_querydomaininvalid;
|
||||||
if (ctype_digit(p[0])) {
|
if (ctype_digit(p[0])) {
|
||||||
if (ctype_digit(p[1]) && ctype_digit(p[2])) {
|
if (ctype_digit(p[1]) && ctype_digit(p[2])) {
|
||||||
c= (p[0] - '0')*100 + (p[1] - '0')*10 + (p[0] - '0');
|
c= (p[0] - '0')*100 + (p[1] - '0')*10 + (p[2] - '0');
|
||||||
p += 3;
|
p += 3;
|
||||||
if (c >= 256) return adns_s_querydomaininvalid;
|
if (c >= 256) return adns_s_querydomaininvalid;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue