s3:smbd: make use of change_notify_fsp_has_changes()
[kai/samba.git] / source3 / smbd / nttrans.c
index 53e17139915e8dd40db7919b4bc73567e547d2ae..f7a27187e83ef57de5fc6533ec6ddb4c5a0dd65d 100644 (file)
@@ -1743,7 +1743,7 @@ static void call_nt_transact_notify_change(connection_struct *conn,
                }
        }
 
-       if (fsp->notify->num_changes != 0) {
+       if (change_notify_fsp_has_changes(fsp)) {
 
                /*
                 * We've got changes pending, respond immediately