Fix logic for checking for null idcard
authorKevin Wasserman <krwasserman@hotmail.com>
Tue, 26 Mar 2013 14:05:24 +0000 (10:05 -0400)
committerKevin Wasserman <krwasserman@hotmail.com>
Tue, 26 Mar 2013 14:05:24 +0000 (10:05 -0400)
src/moonshot-server.vala

index 267b670..24077c4 100644 (file)
@@ -267,7 +267,7 @@ public class MoonshotServer : Object {
 
         var id_card = request.id_card;
 
-        if (id_card == null) {
+        if (id_card != null) {
             // The strings are freed by the RPC runtime
             nai_out = id_card.nai;
             password_out = id_card.password;