[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[sfrench/samba-autobuild/.git] / source3 / libsmb / clierror.c
index 374fdfa5e48a5480373d41d11a170874f4966fe6..be018074eb5d521b7ae969cee596e5a2891ccc06 100644 (file)
@@ -83,7 +83,6 @@ static NTSTATUS cli_smb_rw_error_to_ntstatus(struct cli_state *cli)
                case WRITE_ERROR:
                        return NT_STATUS_UNEXPECTED_NETWORK_ERROR;
                case READ_BAD_SIG:
-               case READ_BAD_DECRYPT:
                        return NT_STATUS_INVALID_PARAMETER;
                default:
                        break;
@@ -133,10 +132,6 @@ const char *cli_errstr(struct cli_state *cli)
                                slprintf(cli_error_message, sizeof(cli_error_message) - 1,
                                        "Server packet had invalid SMB signature!");
                                break;
-                       case READ_BAD_DECRYPT:
-                               slprintf(cli_error_message, sizeof(cli_error_message) - 1,
-                                       "Server packet could not be decrypted !");
-                               break;
                        default:
                                slprintf(cli_error_message, sizeof(cli_error_message) - 1,
                                        "Unknown error code %d\n", cli->smb_rw_error );