net: Use procid_is_local
authorVolker Lendecke <vl@samba.org>
Wed, 14 Oct 2015 09:49:57 +0000 (11:49 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 7 Jan 2016 15:01:09 +0000 (16:01 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/utils/net_serverid.c

index 630a7dea08233b171fcd47565112a9a7e95431e2..f228c91f536f4be8c1d2f88bc835cbba786c1115 100644 (file)
@@ -51,7 +51,7 @@ static int net_serverid_wipe_fn(struct db_record *rec,
 {
        NTSTATUS status;
 
-       if (id->vnn != get_my_vnn()) {
+       if (!procid_is_local(id)) {
                return 0;
        }
        status = dbwrap_record_delete(rec);