~ubuntu-branches/ubuntu/karmic/nginx/karmic

« back to all changes in this revision

Viewing changes to src/os/unix/ngx_user.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2009-05-31 18:38:56 UTC
  • mfrom: (1.1.11 upstream) (4.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090531183856-lkdgdzr9m731fz92
Tags: 0.7.59-1
* New upstream release, first in Debian for the 0.7 branch. Among other
  issues, it also fixes the problem with wildcard dns names used with SSL.
  (Closes: #515904)
* debian/watch: updated.
* debian/postinst: fixed a bashism. (Closes: #507913)
* debian/conf/nginx.conf: removed default_type. (Closes: #509390)
* debian/control: updated Standards-Version to 3.8.1, no changes needed.
* debian/NEWS.Debian: documented the issues with
  server_names_hash_bucket_size. (Closes: #524785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    if (err == 0) {
44
44
        len = ngx_strlen(value);
45
45
 
46
 
        *encrypted = ngx_palloc(pool, len);
 
46
        *encrypted = ngx_pnalloc(pool, len);
47
47
        if (*encrypted) {
48
48
            ngx_memcpy(*encrypted, value, len + 1);
49
49
            return NGX_OK;
81
81
    if (value) {
82
82
        len = ngx_strlen(value);
83
83
 
84
 
        *encrypted = ngx_palloc(pool, len);
 
84
        *encrypted = ngx_pnalloc(pool, len);
85
85
        if (*encrypted) {
86
86
            ngx_memcpy(*encrypted, value, len + 1);
87
87
        }