fixed SPI byte order
authorMartin Willi <martin@strongswan.org>
Wed, 21 Mar 2007 16:09:27 +0000 (16:09 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 21 Mar 2007 16:09:27 +0000 (16:09 -0000)
src/charon/threads/kernel_interface.c

index 9ee788a..f8456ab 100644 (file)
@@ -520,7 +520,7 @@ static void receive_events(private_kernel_interface_t *this)
                        DBG2(DBG_KNL, "received a XFRM_MSG_EXPIRE");
                        DBG1(DBG_KNL, "creating %s job for %N CHILD_SA 0x%x (reqid %d)",
                                 expire->hard ? "delete" : "rekey",  protocol_id_names,
                        DBG2(DBG_KNL, "received a XFRM_MSG_EXPIRE");
                        DBG1(DBG_KNL, "creating %s job for %N CHILD_SA 0x%x (reqid %d)",
                                 expire->hard ? "delete" : "rekey",  protocol_id_names,
-                                protocol, spi, reqid);
+                                protocol, ntohl(spi), reqid);
                        if (expire->hard)
                        {
                                job = (job_t*)delete_child_sa_job_create(reqid, protocol, spi);
                        if (expire->hard)
                        {
                                job = (job_t*)delete_child_sa_job_create(reqid, protocol, spi);