libcli: Covscan: unchecked return value for file_save()
authorPavel Filipenský <pfilipen@redhat.com>
Wed, 11 May 2022 09:32:47 +0000 (11:32 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 14 May 2022 03:49:32 +0000 (03:49 +0000)
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
libcli/netlogon/netlogon.c

index ed1b2fbe366e1b5b9d9d6e71dcd5c8043ef55d37..15e808743d1fc5df6ce075c6927324724e6851a7 100644 (file)
@@ -192,7 +192,7 @@ NTSTATUS push_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                        DEBUG(0,("Failed to parse netlogon packet of length %d: %s\n",
                                 (int)data->length, nt_errstr(status)));
                        if (DEBUGLVL(10)) {
-                               file_save("netlogon.dat", data->data, data->length);
+                               (void)file_save("netlogon.dat", data->data, data->length);
                        }
                        return status;
                }
@@ -243,7 +243,7 @@ NTSTATUS pull_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                        DEBUG(0,("Failed to parse netlogon packet of length %d: %s\n",
                                 (int)data->length, nt_errstr(status)));
                        if (DEBUGLVL(10)) {
-                               file_save("netlogon.dat", data->data, data->length);
+                               (void)file_save("netlogon.dat", data->data, data->length);
                        }
                        return status;
                }