if (ar.err == NETDB_SUCCESS) {
*addrOut = malloc(sizeof(struct in_addr));
memcpy(*addrOut,ar.ent->h_addr_list[0], sizeof(struct in_addr));
- free_hostent(ar.ent);
}
+ free_hostent(ar.ent);
return(ar.err);
}
}
if (count==0) {
- if (tl==0)
+ if (tl==0) {
+ free(t);
return EDG_WLL_GSS_ERROR_EOF;
- else goto end;
+ } else goto end;
}
tmp=realloc(t, tl + count);
if (tmp == NULL) {
- errno = ENOMEM;
- return EDG_WLL_GSS_ERROR_ERRNO;
+ errno = ENOMEM;
+ free(t);
+ return EDG_WLL_GSS_ERROR_ERRNO;
}
t = tmp;
memcpy(t + tl, buf, count);
void errorTest();
void setUp();
+ void tearDown();
private:
edg_wll_GssCred my_cred;
if ( edg_wll_gss_write(&conn, buf, len, &timeout, &stat) ) exit(1);
}
+ edg_wll_gss_close(&conn, &timeout);
+
exit(0);
}
}
+void GSSTest::tearDown(void) {
+ edg_wll_gss_release_cred(&my_cred, NULL);
+}
+
void GSSTest::echo()
{