comparison src/event/ngx_event_openssl.c @ 3159:d4cc5a450ee9

fix r3155
author Igor Sysoev <igor@sysoev.ru>
date Thu, 24 Sep 2009 20:09:12 +0000
parents e720c4a68ee0
children 52b1624b93c2
comparison
equal deleted inserted replaced
3158:17afb68c2a9a 3159:d4cc5a450ee9
1945 } 1945 }
1946 1946
1947 s->len = 2 * len; 1947 s->len = 2 * len;
1948 s->data = ngx_pnalloc(pool, 2 * len); 1948 s->data = ngx_pnalloc(pool, 2 * len);
1949 if (s->data == NULL) { 1949 if (s->data == NULL) {
1950 ngx_free(p); 1950 ngx_free(buf);
1951 return NGX_ERROR; 1951 return NGX_ERROR;
1952 } 1952 }
1953 1953
1954 p = buf; 1954 p = buf;
1955 i2d_SSL_SESSION(sess, &p); 1955 i2d_SSL_SESSION(sess, &p);