diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2013-02-11 12:37:06 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-02-11 12:37:06 +0000 |
| commit | 5b59ed2e0aaf7fe0b97e81c91737a91bb43345f1 (patch) | |
| tree | 8eb3751eedd5727ba54904dea3209c387627228a /src/core | |
| parent | bbbadc2be234bf93fdf0f8dc3a22438b73ea586b (diff) | |
| download | nginx-5b59ed2e0aaf7fe0b97e81c91737a91bb43345f1.tar.gz nginx-5b59ed2e0aaf7fe0b97e81c91737a91bb43345f1.tar.bz2 | |
Merge of r4983: crypt_r() error handling fixed.
The crypt_r() function returns NULL on errors, check it explicitly instead
of assuming errno will remain 0 if there are no errors (per POSIX, the
setting of errno after a successful call to a function is unspecified
unless the description of that function specifies that errno shall not
be modified).
Additionally, dropped unneeded ngx_set_errno(0) and fixed error handling
of memory allocation after normal crypt(), which was inapropriate and
resulted in null pointer dereference on allocation failures.
Diffstat (limited to 'src/core')
0 files changed, 0 insertions, 0 deletions
