projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5b4be
)
curl-util: fix use after free
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 15:18:58 +0000
(16:18 +0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 6 Feb 2019 15:19:02 +0000
(16:19 +0100)
This fixes a bug introduced by
c3e658004a66115fa09abcf602d573e65e577aa9
.
src/import/curl-util.c
patch
|
blob
|
history
diff --git
a/src/import/curl-util.c
b/src/import/curl-util.c
index
360628f
..
7db03b2
100644
(file)
--- a/
src/import/curl-util.c
+++ b/
src/import/curl-util.c
@@
-291,7
+291,7
@@
int curl_glue_make(CURL **ret, const char *url, void *userdata) {
if (curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L) != CURLE_OK)
return -EIO;
- *ret =
c
;
+ *ret =
TAKE_PTR(c)
;
return 0;
}