Ticket #587: log_v3.c.patch

File log_v3.c.patch, 449 bytes (added by dogbert2, 9 years ago)

Patch file for ticket #587

  • log_v3.c

    old new  
    106106
    107107  /* Allocate our context */
    108108  context = (struct plugin_context *) calloc (1, sizeof (struct plugin_context));
     109  if (NULL == context) {
     110    printf("Unable to allocate memory for context\n");
     111    return OPENVPN_PLUGIN_FUNC_ERROR;
     112  }
    109113
    110114  /* Set the username/password we will require. */
    111115  context->username = "foo";