Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Nov 26, 2019
1 parent fc31815 commit 8dc129a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,9 @@ void resolver_process(struct Message* msg)
free(rr);
goto next;
}
rr->rd_data.txt_record.txt_data_len = strlen(rr->rd_data.txt_record.txt_data);
rr->rd_length = strlen(rr->rd_data.txt_record.txt_data) + 1;
int txt_data_len = strlen(rr->rd_data.txt_record.txt_data);
rr->rd_length = txt_data_len + 1;
rr->rd_data.txt_record.txt_data_len = txt_data_len;
break;
/*
case NS_Resource_RecordType:
Expand Down

0 comments on commit 8dc129a

Please sign in to comment.