clean connection on unsuccessfull connect
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 30 May 2005 14:20:12 +0000 (14:20 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 30 May 2005 14:20:12 +0000 (14:20 +0000)
org.glite.security.gsoap-plugin/src/glite_gsplugin.c

index 17cacc5..43a1aee 100644 (file)
@@ -232,6 +232,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;
        }