--- sa_test.c 2003/02/07 20:47:51 1.25
+++ sa_test.c 2003/02/09 14:43:28 1.26
@@ -81,9 +81,11 @@
ts_test_fail(TS_CTX, "sa_addr_a2u -> %d[%s] (expected %d[%s])",
rv, sa_error(rv), table[i].rv, sa_error(table[i].rv));
ts_test_check(TS_CTX, "sa_addr_a2u");
- if ((rv = sa_addr_a2u(saa, &cp)) != SA_OK)
+ if ((rv = sa_addr_a2u(saa, &cp)) != SA_OK) {
ts_test_fail(TS_CTX, "sa_addr_u2a -> %d[%s] (expected %d[%s])",
rv, sa_error(rv), SA_OK, sa_error(SA_OK));
+ continue;
+ }
if (table[i].rv == SA_OK) {
if (table[i].out_alt != NULL) {
if (strcmp(cp, table[i].out) != 0 && strcmp(cp, table[i].out_alt) != 0)
@@ -96,6 +98,7 @@
cp, table[i].out);
}
}
+ free(cp);
}
ts_test_check(TS_CTX, "sa_addr_destroy");
if ((rv = sa_addr_destroy(saa)) != SA_OK)
|