removed colons from session cookie
authorMartin Willi <martin@strongswan.org>
Thu, 27 Sep 2007 13:10:10 +0000 (13:10 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 27 Sep 2007 13:10:10 +0000 (13:10 -0000)
src/manager/lib/session.c

index 8ffbc72..de1c0be 100644 (file)
@@ -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);
 }