Ignore:
Timestamp:
Oct 8, 2013 9:08:13 AM (11 years ago)
Author:
bennylp
Message:

Re #1703: fixing general bugs. First installment: correct handling of snprintf return value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_ossl.c

    r4537 r4613  
    273273                                   "Unknown OpenSSL error %lu", 
    274274                                   ssl_err); 
    275  
     275    if (errstr.slen < 1 || errstr.slen >= (int)bufsize) 
     276        errstr.slen = bufsize - 1; 
    276277    return errstr; 
    277278} 
Note: See TracChangeset for help on using the changeset viewer.