Ticket #600: cryptoapi.c.patch

File cryptoapi.c.patch, 366 bytes (added by dogbert2, 6 years ago)

Patch file for ticket #600

  • cryptoapi.c

    old new  
    117117    if (lpMsgBuf) {
    118118        char *p;
    119119        rv = strdup(lpMsgBuf);
     120        if (rv == NULL) {
     121            msg(M_FATAL, "Unable to allocate memory for rv in ms_error_text().\n");
     122            return NULL;
     123        }
    120124        LocalFree(lpMsgBuf);
    121125        /* trim to the left */
    122126        if (rv)