]> andersk Git - moira.git/blobdiff - update/auth_002.c
compile with gcc without -traditional on suns
[moira.git] / update / auth_002.c
index ca621350198cc0481610aeb7db1f45fb99e5f5e3..182e77a5c79ea3524941a69464338dd4282ee1c7 100644 (file)
@@ -125,7 +125,11 @@ auth_002(str)
     if (send_object(conn, (char *)&data, STRING_T))
        lose("sending nonce");
     code = receive_object(conn, (char *)&data, STRING_T);
-    des_key_sched(&ad.session, &sched);
+    if (code) {
+       code = connection_errno(conn);
+       goto auth_failed;
+    }
+    des_key_sched(ad.session, sched);
     des_ecb_encrypt(STRING_DATA(data), nonce2, sched, 0);
     if (memcmp(nonce, nonce2, sizeof(nonce)))
        goto auth_failed;
This page took 0.03073 seconds and 4 git commands to generate.