summaryrefslogtreecommitdiff
path: root/client/bankid.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-04-11 21:34:54 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-04-11 21:34:54 +0200
commitcbe0115945351b3fad4b22071ae2223a2d8632c4 (patch)
tree5dce0e65a627c035a7c2ce425e4aa6961927f626 /client/bankid.c
parente7b122d37d4146f1c6c6a5b5e78f2c3ec6ef346e (diff)
downloadfribid-cbe0115945351b3fad4b22071ae2223a2d8632c4.tar.gz
fribid-cbe0115945351b3fad4b22071ae2223a2d8632c4.tar.bz2
fribid-cbe0115945351b3fad4b22071ae2223a2d8632c4.zip
Add missing code from previos change
Prevents a double free...
Diffstat (limited to 'client/bankid.c')
-rw-r--r--client/bankid.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client/bankid.c b/client/bankid.c
index 97e74fb..8f2ea71 100644
--- a/client/bankid.c
+++ b/client/bankid.c
@@ -355,10 +355,7 @@ BankIDError bankid_createRequest(const RegutilInfo *params,
size_t brlen;
TokenError error = backend_createRequest(params, password,
&binaryRequest, &brlen);
- if (error) {
- free(binaryRequest);
- return BIDERR_InternalError;
- }
+ if (error) return BIDERR_InternalError;
// Encode with Base64
*request = base64_encode(binaryRequest, brlen);