mirror of
https://github.com/moparisthebest/socat
synced 2024-11-14 21:15:01 -05:00
dropopts must not free()
This commit is contained in:
parent
3ef7b3e366
commit
1c302dc23c
3
CHANGES
3
CHANGES
@ -56,6 +56,9 @@ corrections:
|
||||
UDP-LISTEN slept 1s after accepting a connection. This is not required.
|
||||
Thanks to Peter Valdemar Morch for reporting this issue
|
||||
|
||||
fixed a bug that could lead to error or socat crash after a client
|
||||
connection with option retry had been established
|
||||
|
||||
porting:
|
||||
Cedril Priscal ported socat to Android (using Googles cross compiler).
|
||||
The port includes the socat_buildscript_for_android.sh script
|
||||
|
@ -4173,9 +4173,8 @@ int _xio_openlate(struct single *fd, struct opt *opts) {
|
||||
int dropopts(struct opt *opts, unsigned int phase) {
|
||||
struct opt *opt;
|
||||
|
||||
/*!*/
|
||||
if (phase == PH_ALL) {
|
||||
free(opts);
|
||||
opts[0].desc = ODESC_END;
|
||||
return 0;
|
||||
}
|
||||
opt = opts; while (opt && opt->desc != ODESC_END) {
|
||||
|
Loading…
Reference in New Issue
Block a user