]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IONVRAM.cpp
xnu-3248.20.55.tar.gz
[apple/xnu.git] / iokit / Kernel / IONVRAM.cpp
index 17cd841bcefa9f0776f5d9487e0c3ae9f5c0cc50..ebaa3087d4a4370b5113738c244678eaa8282bde 100644 (file)
@@ -297,7 +297,10 @@ bool IODTNVRAM::serializeProperties(OSSerialize *s) const
           && (current_task() == kernel_task || mac_iokit_check_nvram_get(kauth_cred_get(), key->getCStringNoCopy()) == 0)
 #endif
          ) { }
-      else dict->removeObject(key);
+      else {
+        dict->removeObject(key);
+        iter->reset();
+      }
     }
   }