Skip to content

Commit

Permalink
[ch2857] Fixed deadlock in IPv4 frag handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon committed Feb 22, 2018
1 parent 3713bb5 commit 46d1a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.68])
AC_INIT([cyberprobe], [1.9.8], [[email protected]])
AC_INIT([cyberprobe], [1.9.9], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror])
AC_CONFIG_SRCDIR([src/target.h])
AC_CONFIG_HEADERS([config.h])
Expand Down
5 changes: 3 additions & 2 deletions src/ip.C
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ void ip::process_ip4(manager& mgr, context_ptr c, const pdu_slice& sl)
fc->f_list.erase(id);
fc->hdrs_list.erase(id);

// Need to unlock, because the re-entrant call will take the lock.
fc->lock.unlock();

// We now have a complete IP packet! Process it.
ip::process_ip4(mgr, c,
pdu_slice(pdu.begin(), pdu.end(), sl.time));

fc->lock.unlock();

return;

} else {
Expand Down

0 comments on commit 46d1a95

Please sign in to comment.