Changeset: 2fcf0487f042 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2fcf0487f042
Modified Files:
clients/mapilib/connect.c
Branch: monetdburl
Log Message:
Clear earlier redirects before processing new ones
Apparently this has been lost in my refactoring
diffs (16 lines):
diff --git a/clients/mapilib/connect.c b/clients/mapilib/connect.c
--- a/clients/mapilib/connect.c
+++ b/clients/mapilib/connect.c
@@ -749,6 +749,12 @@ mapi_handshake(Mapi mid)
mnstr_flush(mid->to, MNSTR_FLUSH_DATA);
check_stream(mid, mid->to, "Could not send initial byte sequence",
mid->error);
+ // Clear the redirects before we receive new ones
+ for (char **r = mid->redirects; *r != NULL; r++) {
+ free(*r);
+ *r = NULL;
+ }
+
/* consume the welcome message from the server */
hdl = mapi_new_handle(mid);
if (hdl == NULL) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]