Changeset: 603b35e4c17b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=603b35e4c17b
Modified Files:
monetdb5/modules/mal/remote.c
Branch: Jan2014
Log Message:
Use after free.
diffs (18 lines):
diff --git a/monetdb5/modules/mal/remote.c b/monetdb5/modules/mal/remote.c
--- a/monetdb5/modules/mal/remote.c
+++ b/monetdb5/modules/mal/remote.c
@@ -198,10 +198,11 @@ str RMTconnectScen(
}
if (mapi_reconnect(m) != MOK) {
+ MT_lock_unset(&mal_remoteLock, "remote.connect");
+ msg = createException(IO, "remote.connect", "unable to connect
to '%s': %s",
+ *ouri, mapi_error_str(m));
mapi_destroy(m);
- MT_lock_unset(&mal_remoteLock, "remote.connect");
- throw(IO, "remote.connect", "unable to connect to '%s': %s",
- *ouri, mapi_error_str(m));
+ return msg;
}
/* connection established, add to list */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list