diff options
author | Frédéric Brière <fbriere@fbriere.net> | 2016-10-03 11:29:00 -0400 |
---|---|---|
committer | Frédéric Brière <fbriere@fbriere.net> | 2016-10-04 17:55:27 -0400 |
commit | 2eb954cb34fcb956070896101df4ba78272939fa (patch) | |
tree | 33dc1a1d283f88d55f9dae36fa8a180e6da943e2 /src/sockets/connection.cpp | |
parent | a06681c29a66b7213eef0261d689230ee7515e5e (diff) | |
download | twinkle-2eb954cb34fcb956070896101df4ba78272939fa.tar twinkle-2eb954cb34fcb956070896101df4ba78272939fa.tar.gz twinkle-2eb954cb34fcb956070896101df4ba78272939fa.tar.lz twinkle-2eb954cb34fcb956070896101df4ba78272939fa.tar.xz twinkle-2eb954cb34fcb956070896101df4ba78272939fa.zip |
Skip over the mutex field when copying t_call_info data
t_line::get_call_info() returns a copy of a (locked) t_call_info;
copying the mutex, aside from being undefined in POSIX, returns an
unexpectedly locked copy, possibly resulting in a deadlock.
This fix is pretty much a copy of the one applied to t_call_record in
38bb6b7, with an added check for self-assignment. Like its predecessor,
it is still susceptible to deadlock, though (as unlikely as it may be).
Fixes #73
Diffstat (limited to 'src/sockets/connection.cpp')
0 files changed, 0 insertions, 0 deletions