- clean connection on unsuccessfull connect glite-security-gsoap-plugin_R_1_1_1
authorJiří Škrábal <nykolas@ics.muni.cz>
Thu, 2 Jun 2005 11:00:51 +0000 (11:00 +0000)
committerJiří Škrábal <nykolas@ics.muni.cz>
Thu, 2 Jun 2005 11:00:51 +0000 (11:00 +0000)
  (patched from maintrunk)

org.glite.security.gsoap-plugin/src/glite_gsplugin.c

index d57ae9a..8eaf169 100644 (file)
@@ -234,6 +234,8 @@ glite_gsplugin_connect(
                                ctx->timeout,
                                ctx->connection, &gss_stat);
        if ( ret ) {
+               free(ctx->connection);
+               ctx->connection = NULL;
                edg_wll_gss_get_error(&gss_stat, "edg_wll_gss_connect()", &ctx->error_msg);
                goto err;
        }