projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
1076272
)
- check for success
author
Michael Wallner
<mike@php.net>
Mon, 11 Apr 2005 10:12:26 +0000
(10:12 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 11 Apr 2005 10:12:26 +0000
(10:12 +0000)
http_message_api.c
patch
|
blob
|
history
diff --git
a/http_message_api.c
b/http_message_api.c
index 0dec4095e2374c4e353f229e374e3837ead41dfb..a4490d8c4535b5a16d31535ebbd45b71bc7a05ed 100644
(file)
--- a/
http_message_api.c
+++ b/
http_message_api.c
@@
-66,7
+66,10
@@
PHP_HTTP_API http_message *_http_message_parse_ex(char *message, size_t message_
header_length = message_length;
}
- http_parse_headers_cb(message, header_length, &msg->hdrs, 1, http_message_parse_headers_callback, (void **) &msg);
+ if (SUCCESS != http_parse_headers_cb(message, header_length, &msg->hdrs, 1, http_message_parse_headers_callback, (void **) &msg)) {
+ http_message_free(msg);
+ return NULL;
+ }
if (body) {
phpstr_from_string_ex(PHPSTR(msg), body, message_length - header_length);