Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/smbd/pidfile.c

    r414 r740  
    3939        char *pidFile;
    4040
    41         asprintf(&pidFile, "%s/%s.pid", piddir, name);
     41        if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) {
     42                return 0;
     43        }
    4244
    4345        fd = open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
     
    8688        pid_t pid;
    8789
    88         asprintf(&pidFile, "%s/%s.pid", piddir, name);
     90        if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) {
     91                DEBUG(0,("ERROR: Out of memory\n"));
     92                exit(1);
     93        }
    8994
    9095        pid = pidfile_pid(piddir, name);
Note: See TracChangeset for help on using the changeset viewer.