projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11ba367
)
make sure data->set.postfields is non-NULL before doing strlen() on the
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 11 Jun 2002 07:20:21 +0000
(07:20 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 11 Jun 2002 07:20:21 +0000
(07:20 +0000)
pointer. Bugs item #566835.
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index
cc4ac8f
..
b135912
100644
(file)
--- a/
lib/http.c
+++ b/
lib/http.c
@@
-924,8
+924,9
@@
CURLcode Curl_http(struct connectdata *conn)
actually set your own */
add_bufferf(req_buffer,
"Content-Length: %d\r\n",
- (data->set.postfieldsize?data->set.postfieldsize:
- strlen(data->set.postfields)) );
+ data->set.postfieldsize?
+ data->set.postfieldsize:
+ (data->set.postfields?strlen(data->set.postfields):0) );
if(!checkheaders(data, "Content-Type:"))
add_bufferf(req_buffer,