Home | History | Annotate | Download | only in openbsd-compat

Lines Matching full:curr

452 	struct dns_query *head, *curr, *prev;
456 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) {
459 curr = calloc(1, sizeof(struct dns_query));
460 if (curr == NULL) {
465 head = curr;
467 prev->next = curr;
476 curr->name = strdup(name);
477 if (curr->name == NULL) {
484 curr->type = _getshort(*cp);
488 curr->class = _getshort(*cp);
499 struct dns_rr *head, *curr, *prev;
503 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) {
506 curr = calloc(1, sizeof(struct dns_rr));
507 if (curr == NULL) {
512 head = curr;
514 prev->next = curr;
523 curr->name = strdup(name);
524 if (curr->name == NULL) {
531 curr->type = _getshort(*cp);
535 curr->class = _getshort(*cp);
539 curr->ttl = _getlong(*cp);
543 curr->size = _getshort(*cp);
547 curr->rdata = malloc(curr->size);
548 if (curr->rdata == NULL) {
552 memcpy(curr->rdata, *cp, curr->size);
553 *cp += curr->size;