/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2018-04-01 19:27:30 UTC
  • Revision ID: teddy@recompile.se-20180401192730-jwr4io5cb3x5u268
Don't print NULL string pointers in error message output

* plugins.d/mandos-client.c (pgp_packet_decrypt): If decryption fails,
  don't print unsupported_algorithm if it is NULL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
          fprintf_plus(stderr, "Unsupported algorithm: %s\n",
425
425
                       result->unsupported_algorithm);
426
426
        }
427
 
        fprintf_plus(stderr, "Wrong key usage: %s\n",
428
 
                     result->wrong_key_usage ? "Yes" : "No");
 
427
        fprintf_plus(stderr, "Wrong key usage: %u\n",
 
428
                     result->wrong_key_usage);
429
429
        if(result->file_name != NULL){
430
430
          fprintf_plus(stderr, "File name: %s\n", result->file_name);
431
431
        }