len = 0;
if(*olen < 1)
return RET_ERR(LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL, 0);
- q = buf+1;
- pq = buf;
+ q = buf+1; /* p */
+ pq = buf; /* h */
label_len = 0;
for (s = str; *s; s++, q++) {
if (q >= buf + *olen)
/** put type, class, ttl into rr buffer */
static int
-rrinternal_writetype(sldns_buffer* strbuf, uint8_t* rr, size_t len,
+rrinternal_write_typeclassttl(sldns_buffer* strbuf, uint8_t* rr, size_t len,
size_t dname_len, uint16_t tp, uint16_t cl, uint32_t ttl, int question)
{
if(question) {
¬_there, &tp)) != 0)
return status;
/* put ttl, class, type into the rr result */
- if((status=rrinternal_writetype(&strbuf, rr, *len, *dname_len, tp, cl,
+ if((status=rrinternal_write_typeclassttl(&strbuf, rr, *len, *dname_len, tp, cl,
ttl, question)) != 0)
return status;
/* for a question-RR we are done, no rdata */
/* skip length byte */
if(*len < 1)
return LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL;
-
+
/* read characters */
while(sldns_parse_char(&ch, &s)) {
if(sl >= 255)