OSSP CVS Repository

ossp - Check-in [3132]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3132
Date: 2003-Jan-31 19:34:06 (local)
2003-Jan-31 18:34:06 (UTC)
User:rse
Branch:
Comment: Fixed test suite (sa_test.c): an sa_addr_t was destroyed too early and this way crashed the test suite.

Submitted by: Brian T. Egleston <brian@egleston.com>

Tickets:
Inspections:
Files:
ossp-pkg/sa/ChangeLog      1.21 -> 1.22     6 inserted, 0 deleted
ossp-pkg/sa/THANKS      1.2 -> 1.3     1 inserted, 0 deleted
ossp-pkg/sa/sa_test.c      1.23 -> 1.24     3 inserted, 3 deleted

ossp-pkg/sa/ChangeLog 1.21 -> 1.22

--- ChangeLog    2003/01/31 18:32:00     1.21
+++ ChangeLog    2003/01/31 18:34:06     1.22
@@ -11,6 +11,12 @@
   This is a list of all changes to OSSP sa.
   For a more brief summary please have a look at the NEWS file.
 
+  Changes between 1.0.4 and 1.0.5 (28-Jan-2003 to 31-Jan-2003)
+
+   o Fixed test suite (sa_test.c): an sa_addr_t was destroyed
+     too early and this way crashed the test suite.
+     [Brian T. Egleston <brian@egleston.com>]
+
   Changes between 1.0.3 and 1.0.4 (06-Jan-2003 to 28-Jan-2003)
 
    o Fixed embedding support: mappings for symbols sa_sendf and sa_id


ossp-pkg/sa/THANKS 1.2 -> 1.3

--- THANKS       2002/11/07 06:25:01     1.2
+++ THANKS       2003/01/31 18:34:06     1.3
@@ -18,6 +18,7 @@
   bugfixes, hints, gave platform feedback, etc. (in alphabetical order):
 
     o  Ulrich Dessauer             <udessauer@agnitas.de>
+    o  Brian T. Egleston           <brian@egleston.com>
     o  Michael van Elst            <mlelstv@serpens.de>
     o  Thomas Lotterer             <thomas@lotterer.net>
     o  Alvaro Lopez Ortega         <alvaro@alobbs.com>


ossp-pkg/sa/sa_test.c 1.23 -> 1.24

--- sa_test.c    2003/01/06 13:11:23     1.23
+++ sa_test.c    2003/01/31 18:34:06     1.24
@@ -187,8 +187,8 @@
         /* bind socket to local port */
         ex(SRV, sa_addr_create(&saa_srv));
         ex(SRV, sa_addr_u2a(saa_srv, "inet://127.0.0.1:12345#tcp"));
-        ex(SRV, sa_addr_destroy(saa_srv));
         ex(SRV, sa_bind(sa_srv, saa_srv));
+        ex(SRV, sa_addr_destroy(saa_srv));
 
         /* receive client connection */
         ex(SRV, sa_listen(sa_srv, 10));
@@ -229,8 +229,8 @@
         /* connect to server */
         ex(CLT, sa_addr_create(&saa_clt));
         ex(CLT, sa_addr_u2a(saa_clt, "inet://127.0.0.1:12345#tcp"));
-        ex(CLT, sa_addr_destroy(saa_clt));
         ex(CLT, sa_connect(sa_clt, saa_clt));
+        ex(CLT, sa_addr_destroy(saa_clt));
 
         /* communicate with server */
         ex(CLT, sa_readln(sa_clt, buf_clt, sizeof(buf_clt), &l));
@@ -281,8 +281,8 @@
         /* bind socket to local port */
         ex(SRV, sa_addr_create(&saa_srv));
         ex(SRV, sa_addr_u2a(saa_srv, "inet://127.0.0.1:12345#udp"));
-        ex(SRV, sa_addr_destroy(saa_srv));
         ex(SRV, sa_bind(sa_srv, saa_srv));
+        ex(SRV, sa_addr_destroy(saa_srv));
 
         /* communicate with client */
         ex(SRV, sa_recv(sa_srv, &saa_clt, buf_srv, sizeof(buf_srv), &l));

CVSTrac 2.0.1