diff options
author | shemminger <shemminger> | 2003-05-09 18:42:03 +0000 |
---|---|---|
committer | shemminger <shemminger> | 2003-05-09 18:42:03 +0000 |
commit | 294ee034008c7db57053ebdd4be11cc81c4e511b (patch) | |
tree | eb4801cbb8de04d58ff2a25b9fa6a67c06ec55c6 /brctl/brctl.h | |
parent | 284d907d6da3bd1cfca0bbc64a47f18cb56191dd (diff) | |
download | android_external_brctl-294ee034008c7db57053ebdd4be11cc81c4e511b.tar.gz android_external_brctl-294ee034008c7db57053ebdd4be11cc81c4e511b.tar.bz2 android_external_brctl-294ee034008c7db57053ebdd4be11cc81c4e511b.zip |
From: John Naylon <jbpn@cambridgebroadband.com>
Please find attached a patch which fixes a minor bug in libbridge. This
only affects long-running processes that may call br_refresh() multiple
times, i.e. it doesn't affect brctl but may affect brctld, although I
have not seen this myself (I discovered the bug while working on another
process that links against libbridge).
Basically, if you call br_refresh() when there are one or more bridges up,
take all bridges down and call br_refresh() again, and finally call
br_refresh() once more, your process will probably seg fault because
bridge_list is not NULL, but points at previously-free()d memory on the
third call.
Diffstat (limited to 'brctl/brctl.h')
0 files changed, 0 insertions, 0 deletions