]> andersk Git - moira.git/blobdiff - update/client.c
Initialize a few more things to NULL.
[moira.git] / update / client.c
index e58858a22a95319885720fb3c9f82d9ebb5f2682..4733e984a3c259a9bc1b9b70255262766e5259aa 100644 (file)
@@ -45,8 +45,7 @@ int mr_send_krb5_auth(int conn, char *host_name)
   if (response)
     {
       /* Talking to a server that doesn't do AUTH_003 */
-      if (auth.data)
-       krb5_free_data_contents(context, &auth);
+      krb5_free_data_contents(context, &auth);
       return response;
     }
   code = send_string(conn, (char *)auth.data, auth.length);
@@ -57,16 +56,14 @@ int mr_send_krb5_auth(int conn, char *host_name)
     goto out;
   if (response)
     {
-      if (auth.data)
-       krb5_free_data_contents(context, &auth);
+      krb5_free_data_contents(context, &auth);
       return response;
     }
 
   return MR_SUCCESS;
 
  out:
-  if (auth.data)
-    krb5_free_data_contents(context, &auth);
+  krb5_free_data_contents(context, &auth);
   return code;
 }
 
This page took 0.032335 seconds and 4 git commands to generate.