summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libstb/create-container.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstb/create-container.c b/libstb/create-container.c
index 85e0e082..437a425c 100644
--- a/libstb/create-container.c
+++ b/libstb/create-container.c
@@ -115,6 +115,7 @@ void getSigRaw(ecc_signature_t *sigraw, char *inFile)
memcpy(*sigraw, outbuf, 2*EC_COORDBYTES);
ECDSA_SIG_free(signature);
+ close(fdin);
return;
}
@@ -122,7 +123,7 @@ void getSigRaw(ecc_signature_t *sigraw, char *inFile)
void writeHdr(void *hdr, const char *outFile, int hdr_type)
{
int fdout;
- int r, hdr_sz;
+ int r, hdr_sz=0;
const char *lead;
unsigned char md[SHA512_DIGEST_LENGTH];
OpenPOWER on IntegriCloud