/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 dracut-module/password-agent.c

  • Committer: Teddy Hogeborn
  • Date: 2020-11-30 09:40:14 UTC
  • Revision ID: teddy@recompile.se-20201130094014-33tl5zzswqprc034
Revert commit 1222

Show diffs side-by-side

added added

removed removed

Lines of Context:
5978
5978
      g_test_skip("Skipping EMSGSIZE test: Will not try 1GiB");
5979
5979
      return;
5980
5980
    }
5981
 
    message_buffer = realloc(message_buffer, message_size);
 
5981
    free(message_buffer);
 
5982
    message_buffer = malloc(message_size);
5982
5983
    if(message_buffer == NULL){
5983
5984
      g_test_skip("Skipping EMSGSIZE test");
5984
5985
      g_test_message("Failed to malloc() %" PRIuMAX " bytes",
6005
6006
        g_test_message("Error on send(): %s", strerror(saved_errno));
6006
6007
        return;
6007
6008
      }
6008
 
      break;
6009
6009
    } else if(ssret != (ssize_t)message_size){
6010
6010
      g_test_skip("Skipping EMSGSIZE test");
6011
6011
      g_test_message("Partial send(): %" PRIuMAX " of %" PRIdMAX