Use proper getter for settings in sender and receiver.
authorTobias Brunner <tobias@strongswan.org>
Tue, 24 Apr 2012 13:06:31 +0000 (15:06 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 3 May 2012 11:57:04 +0000 (13:57 +0200)
src/libcharon/network/receiver.c
src/libcharon/network/sender.c

index 89123b9..1e00eb2 100644 (file)
@@ -547,7 +547,7 @@ receiver_t *receiver_create()
                                "%s.receive_delay_type", 0, charon->name),
        this->receive_delay_request = lib->settings->get_bool(lib->settings,
                                "%s.receive_delay_request", TRUE, charon->name),
-       this->receive_delay_response = lib->settings->get_int(lib->settings,
+       this->receive_delay_response = lib->settings->get_bool(lib->settings,
                                "%s.receive_delay_response", TRUE, charon->name),
 
        this->hasher = lib->crypto->create_hasher(lib->crypto, HASH_PREFERRED);
index c0dabd0..dc2641f 100644 (file)
@@ -197,7 +197,7 @@ sender_t * sender_create()
                                                                "%s.send_delay_type", 0, charon->name),
                .send_delay_request = lib->settings->get_bool(lib->settings,
                                                                "%s.send_delay_request", TRUE, charon->name),
-               .send_delay_response = lib->settings->get_int(lib->settings,
+               .send_delay_response = lib->settings->get_bool(lib->settings,
                                                                "%s.send_delay_response", TRUE, charon->name),
        );