[PATCH] Don't crash if there's no intf passed to getLUKSPassphrase.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devicetree.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index b528ab2..32a9904 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -81,6 +81,9 @@ def getLUKSPassphrase(intf, device, globalPassphrase):
         else:
             # we've opened the device so we're done.
             return (globalPassphrase, False)
+
+    if not intf:
+        return (None, None)
     
     buttons = [_("Back"), _("Continue")]
     passphrase_incorrect = False
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux