strduping strings
This commit is contained in:
parent
9a25e8697b
commit
99d3871aa0
|
@ -83,7 +83,15 @@ int soap_loop(LassoLogout *logout)
|
|||
/* remaining service provider; redirect */
|
||||
rc = lasso_logout_init_request(logout, other_sp,
|
||||
lassoHttpMethodRedirect);
|
||||
if (rc) {
|
||||
fprintf(stderr, "lasso_logout_init_request failed\n");
|
||||
return 0;
|
||||
}
|
||||
rc = lasso_logout_build_request_msg(logout);
|
||||
if (rc) {
|
||||
fprintf(stderr, "lasso_logout_build_request_msg\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("Location: %s\n\nRedirected",
|
||||
LASSO_PROFILE(logout)->msg_url);
|
||||
|
|
|
@ -109,7 +109,7 @@ char* req_logout(LassoServer *server, char *soap_msg)
|
|||
if (rc == LASSO_LOGOUT_ERROR_UNSUPPORTED_PROFILE) {
|
||||
/* some SP don't support SOAP logout; fuck off */
|
||||
rc = lasso_logout_build_request_msg(logout);
|
||||
answer = LASSO_PROFILE(logout)->msg_body;
|
||||
answer = strdup(LASSO_PROFILE(logout)->msg_body);
|
||||
goto cleanup;
|
||||
}
|
||||
if (rc) {
|
||||
|
@ -164,7 +164,7 @@ char* req_logout(LassoServer *server, char *soap_msg)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
answer = LASSO_PROFILE(logout)->msg_body;
|
||||
answer = strdup(LASSO_PROFILE(logout)->msg_body);
|
||||
|
||||
cleanup:
|
||||
if (logout) {
|
||||
|
|
Reference in New Issue