summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-18 23:57:45 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-18 23:57:45 +0200
commit65ca030513303747be26a9d64851784cfff6f478 (patch)
tree52221940a48db25d1dda66932ecc4797a97877c7 /lib/http2.h
parent7b3b4722bea40c9f88d6fffaf429c370445b4864 (diff)
downloadcurl-65ca030513303747be26a9d64851784cfff6f478.tar.gz
http2: fix OOM crash
torture mode with test 1021 found it
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/http2.h b/lib/http2.h
index f405b3aeb..f597c805e 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -53,8 +53,9 @@ void Curl_http2_setup_conn(struct connectdata *conn);
void Curl_http2_setup_req(struct Curl_easy *data);
void Curl_http2_done(struct connectdata *conn, bool premature);
CURLcode Curl_http2_done_sending(struct connectdata *conn);
-void Curl_http2_add_child(struct Curl_easy *parent, struct Curl_easy *child,
- bool exclusive);
+CURLcode Curl_http2_add_child(struct Curl_easy *parent,
+ struct Curl_easy *child,
+ bool exclusive);
void Curl_http2_remove_child(struct Curl_easy *parent,
struct Curl_easy *child);
void Curl_http2_cleanup_dependencies(struct Curl_easy *data);