projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uclient-utils: Handle memory allocation failure for url file name
[project/uclient.git]
/
uclient.c
diff --git
a/uclient.c
b/uclient.c
index
8862b55
..
1137168
100644
(file)
--- a/
uclient.c
+++ b/
uclient.c
@@
-59,6
+59,9
@@
__uclient_get_url(const struct uclient_backend *backend,
&uri_buf, strlen(location) + 1,
&auth_buf, auth_str ? strlen(auth_str) + 1 : 0);
+ if (!url)
+ return NULL;
+
url->backend = backend;
url->location = strcpy(uri_buf, location);
if (host)