Skip to content

Commit

Permalink
Merge pull request #897 from giavac/master
Browse files Browse the repository at this point in the history
http_async_client: ensure username and password initialized
  • Loading branch information
grumvalski committed Dec 22, 2016
2 parents ffc0a94 + e3d00a2 commit e8b916c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/http_async_client/async_http.c
Expand Up @@ -281,6 +281,7 @@ void notification_socket_cb(int fd, short event, void *arg)
}
}

query_params.username = NULL;
if (aq->query_params.username) {
len = strlen(aq->query_params.username);
query_params.username = shm_malloc(len+1);
Expand All @@ -294,6 +295,7 @@ void notification_socket_cb(int fd, short event, void *arg)
query_params.username[len] = '\0';
}

query_params.password = NULL;
if (aq->query_params.password) {
len = strlen(aq->query_params.password);
query_params.password = shm_malloc(len+1);
Expand Down

0 comments on commit e8b916c

Please sign in to comment.