summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2021-04-22 15:58:19 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2021-04-22 15:58:28 +0900
commit7f205feefa84995e5914c547988cb68212b3f057 (patch)
treedc7549aac97d5616de903527bd244ca61ccf2733
parent7c89c76e2d99180d4d3526944fb55ed28f36922e (diff)
downloadcurl-7f205feefa84995e5914c547988cb68212b3f057.tar.gz
curl-7f205feefa84995e5914c547988cb68212b3f057.tar.bz2
curl-7f205feefa84995e5914c547988cb68212b3f057.zip
Change-Id: I88d5ab0d7262f6eaf4fcc637c788079f9fc5af32
-rw-r--r--lib/sendf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index 3611c73f9..718553f3c 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -309,11 +309,9 @@ CURLcode Curl_write(struct connectdata *conn,
#ifdef HAVE_TIZEN_DLP
u_int32_t destination_ipv4 = 0;
- if(conn->ip_addr_str != NULL) {
- struct in_addr in;
- if(Curl_inet_pton(AF_INET, conn->ip_addr_str, &in) == 1) {
- destination_ipv4 = in.s_addr;
- }
+ struct in_addr in;
+ if(Curl_inet_pton(AF_INET, conn->ip_addr_str, &in) == 1) {
+ destination_ipv4 = in.s_addr;
}
curl_extensions_dlp_check_leak(conn->host.dispname,