Ticket #587: simple.c.patch

File simple.c.patch, 503 bytes (added by dogbert2, 9 years ago)

Patch file for ticket #587

  • simple.c

    old new  
    132132   * Allocate our context
    133133   */
    134134  context = (struct plugin_context *) calloc (1, sizeof (struct plugin_context));
     135  if (NULL == context) {
     136    printf ("MEMORY_ALLOCATION for context failed...\n");
     137    return NULL;
     138  }
    135139
    136140  context->test_deferred_auth = atoi_null0 (get_env ("test_deferred_auth", envp));
    137141  printf ("TEST_DEFERRED_AUTH %d\n", context->test_deferred_auth);