forked from lda/telodendria
Fix a few segfaults in http and json.
This commit is contained in:
parent
c206ec495d
commit
88f73a6131
3 changed files with 5 additions and 2 deletions
|
@ -126,6 +126,7 @@ recipe_docs() {
|
||||||
recipe_cytoplasm() {
|
recipe_cytoplasm() {
|
||||||
cd Cytoplasm
|
cd Cytoplasm
|
||||||
export TLS_IMPL
|
export TLS_IMPL
|
||||||
|
export CFLAGS
|
||||||
if ! sh make.sh; then
|
if ! sh make.sh; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -199,8 +199,11 @@ Main(Array * args)
|
||||||
|
|
||||||
HttpRequestSendHeaders(cx);
|
HttpRequestSendHeaders(cx);
|
||||||
StreamCopy(in, HttpClientStream(cx));
|
StreamCopy(in, HttpClientStream(cx));
|
||||||
|
if (in != StreamStdin())
|
||||||
|
{
|
||||||
StreamClose(in);
|
StreamClose(in);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *lenStr;
|
char *lenStr;
|
||||||
|
|
|
@ -189,7 +189,6 @@ encode(char *str)
|
||||||
JsonEncodeValue(val, StreamStdout(), JSON_DEFAULT);
|
JsonEncodeValue(val, StreamStdout(), JSON_DEFAULT);
|
||||||
JsonValueFree(val);
|
JsonValueFree(val);
|
||||||
StreamPutc(StreamStdout(), '\n');
|
StreamPutc(StreamStdout(), '\n');
|
||||||
JsonValueFree(val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue