summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/pol
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-10-11 20:27:32 +0200
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-10-11 20:27:32 +0200
commit1ee129f4479b1910afc929f24bb70b8bc6478f01 (patch)
treef899381d05ed5f322829bc478c9e3517cf1f9184 /src/ipcpd/normal/pol
parent6856f3e24fa00b99747bab790b478866212b2e2d (diff)
parent558fc46c63d28ce2ffd0abc5c737f49cc185ba82 (diff)
downloadouroboros-1ee129f4479b1910afc929f24bb70b8bc6478f01.tar.gz
ouroboros-1ee129f4479b1910afc929f24bb70b8bc6478f01.zip
Merge branch 'testing' into be
Diffstat (limited to 'src/ipcpd/normal/pol')
-rw-r--r--src/ipcpd/normal/pol/link_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipcpd/normal/pol/link_state.c b/src/ipcpd/normal/pol/link_state.c
index 8db1a9c5..e8677f0d 100644
--- a/src/ipcpd/normal/pol/link_state.c
+++ b/src/ipcpd/normal/pol/link_state.c
@@ -795,7 +795,9 @@ static void handle_event(void * self,
if (lsdb_add_link(ipcpi.dt_addr, c->conn_info.addr, 0, &qs))
log_dbg("Failed to add new adjacency to LSDB.");
+ pthread_rwlock_rdlock(&ls.db_lock);
send_lsm(ipcpi.dt_addr, c->conn_info.addr, 0);
+ pthread_rwlock_unlock(&ls.db_lock);
break;
case NOTIFY_DT_CONN_DEL: