main: safeguard start_sync

This commit is contained in:
Thomas Schoebel-Theuer 2019-11-09 10:22:44 +01:00
parent a539fd3b48
commit 2635ffe15d
1 changed files with 3 additions and 1 deletions

View File

@ -4840,7 +4840,9 @@ static int make_sync(void *buf, struct mars_dent *dent)
bool do_start;
int status;
if (!dent->d_parent || !dent->new_link) {
if (!dent->d_parent ||
!dent->d_parent->d_private ||
!dent->new_link) {
return 0;
}