diff options
author | Martin Willi <martin@strongswan.org> | 2007-09-27 13:10:10 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-09-27 13:10:10 +0000 |
commit | a57ab4d6907d2729c7f627b71c99a1cefbc0126a (patch) | |
tree | b48549fa6e0cb9a362f772da77f2bf819251652b /src/manager | |
parent | 85c6fc028324089cf31f574b9b0b772f3bd66f2e (diff) | |
download | strongswan-a57ab4d6907d2729c7f627b71c99a1cefbc0126a.tar.bz2 strongswan-a57ab4d6907d2729c7f627b71c99a1cefbc0126a.tar.xz |
removed colons from session cookie
Diffstat (limited to 'src/manager')
-rw-r--r-- | src/manager/lib/session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager/lib/session.c b/src/manager/lib/session.c index 8ffbc7230..de1c0be54 100644 --- a/src/manager/lib/session.c +++ b/src/manager/lib/session.c @@ -77,7 +77,7 @@ static void create_sid(private_session_t *this, request_t *request) randomizer_t *randomizer = randomizer_create(); randomizer->get_pseudo_random_bytes(randomizer, sizeof(buf), buf); - asprintf(&this->sid, "%#B", &chunk); + this->sid = chunk_to_hex(chunk, FALSE); request->add_cookie(request, "SID", this->sid); randomizer->destroy(randomizer); } |