diff options
author | Michael Forney <mforney@mforney.org> | 2013-11-04 21:43:57 -0800 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-11-23 16:23:09 -0500 |
commit | 4f6658b9698a3c34dee99ae050d7c22191e1f80b (patch) | |
tree | 07d8a29cbd4f8c50762fd0a2857e583457795b13 | |
parent | 3fd1acbfeed025ac833b4d6d2bc45dac4d3562c8 (diff) | |
download | musl-4f6658b9698a3c34dee99ae050d7c22191e1f80b.tar.gz musl-4f6658b9698a3c34dee99ae050d7c22191e1f80b.tar.bz2 musl-4f6658b9698a3c34dee99ae050d7c22191e1f80b.tar.xz musl-4f6658b9698a3c34dee99ae050d7c22191e1f80b.zip |
Fix dn_expand pointer following
-rw-r--r-- | src/network/dn_expand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/dn_expand.c b/src/network/dn_expand.c index 4e02e3d2..96adf37e 100644 --- a/src/network/dn_expand.c +++ b/src/network/dn_expand.c @@ -10,7 +10,7 @@ int __dn_expand(const unsigned char *base, const unsigned char *end, const unsig for (;;) { if (*p & 0xc0) { if (p+1==end) return -1; - j = (p[0]&1) | p[1]; + j = ((p[0] & 0x3f) << 8) | p[1]; if (len < 0) len = p+2-src; if (j >= end-base) return -1; p = base+j; |