Skip to content

Commit

Permalink
Fix issue with request initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 10, 2014
1 parent ce7bb10 commit 8d80ac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ rdns_make_request_full (
req->qcount = queries;
req->io = NULL;
req->state = RDNS_REQUEST_NEW;
req->requested_names = malloc (queries * sizeof (struct rdns_request_name));
req->packet = NULL;
req->requested_names = calloc (queries, sizeof (struct rdns_request_name));
if (req->requested_names == NULL) {
free (req);
return NULL;
Expand Down

0 comments on commit 8d80ac7

Please sign in to comment.