check buffer position before reading data instead of the other way around
check buffer position before reading data instead of the other way around


NLnetLabs/ldns,threatstack/libldns,benlaurie/ldns,gegenschall/ldns,benlaurie/ldns,gegenschall/ldns,NLnetLabs/ldns,NLnetLabs/ldns,gegenschall/ldns,threatstack/libldns,threatstack/libldns,threatstack/libldns,NLnetLabs/ldns,gegenschall/ldns,threatstack/libldns,benlaurie/ldns,benlaurie/ldns