Skip to content

Commit

Permalink
fix handleSwssNotification crash in dhcp6relay (sonic-net#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaiMR authored and qiluo-msft committed Feb 2, 2023
1 parent ed86546 commit 677543f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/configInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ void initialize_swss(std::unordered_map<std::string, relay_config> &vlans)
swss::SubscriberStateTable ipHelpersTable(configDbPtr.get(), "DHCP_RELAY");
swssSelect.addSelectable(&ipHelpersTable);
get_dhcp(vlans, &ipHelpersTable, false);
struct swssNotification test;
test.vlans = vlans;
test.ipHelpersTable = &ipHelpersTable;
mSwssThreadPtr = std::make_shared<boost::thread> (&handleSwssNotification, test);
}
catch (const std::bad_alloc &e) {
syslog(LOG_ERR, "Failed allocate memory. Exception details: %s", e.what());
Expand Down

0 comments on commit 677543f

Please sign in to comment.