Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Do not NULL location_ptr in set_endpoint_info. #117

Merged
merged 1 commit into from
Jan 18, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions source/libNsdl/src/sn_nsdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ int8_t sn_nsdl_destroy(struct nsdl_s *handle)
handle->ep_information_ptr->type_ptr = 0;
}

if (handle->ep_information_ptr->lifetime_ptr)

{
if (handle->ep_information_ptr->lifetime_ptr) {
handle->sn_nsdl_free(handle->ep_information_ptr->lifetime_ptr);
handle->ep_information_ptr->lifetime_ptr = 0;
}
Expand Down Expand Up @@ -1556,9 +1554,6 @@ static int8_t set_endpoint_info(struct nsdl_s *handle, sn_nsdl_ep_parameters_s *
handle->ep_information_ptr->binding_and_mode = endpoint_info_ptr->binding_and_mode;
handle->ep_information_ptr->ds_register_mode = endpoint_info_ptr->ds_register_mode;

handle->ep_information_ptr->location_ptr = 0;
handle->ep_information_ptr->location_len = 0;

return 0;
}

Expand Down