CONNECT: connect data is not always malloc()ed so we can demand it is free()able
After a sync connection, make sure to clear connect_data since it will otherwise point to a structure on the stack.
This commit is contained in:
@@ -244,7 +244,6 @@ iscsi_destroy_context(struct iscsi_context *iscsi)
|
||||
free(discard_const(iscsi->chap_c));
|
||||
iscsi->chap_c = NULL;
|
||||
|
||||
free(iscsi->connect_data);
|
||||
iscsi->connect_data = NULL;
|
||||
|
||||
free(iscsi);
|
||||
|
||||
Reference in New Issue
Block a user