~ubuntu-branches/debian/experimental/389-ds-base/experimental

« back to all changes in this revision

Viewing changes to ldap/servers/snmp/main.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mfrom: (0.2.2)
  • Revision ID: package-import@ubuntu.com-20140708155011-r66lvtioamqwaype
Tags: 1.3.2.19-1
* New upstream release.
* admin_scripts.diff: Updated to fix more bashisms.
* watch: Update the url.
* Install failedbinds.py and logregex.py scripts.
* init: Use status from init-functions.
* control: Update my email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
                            got_port = 1;
453
453
                        } else if (strcmp(attr, "nsslapd-rundir") == 0) {
454
454
                            /* 8 =  "/" + ".stats" + \0 */
455
 
                            serv_p->stats_file = malloc(vlen + strlen(instancename) + 8);
456
 
                            if (serv_p->stats_file != NULL) {
 
455
                            serv_p->stats_file = malloc(vlen + (instancename ? strlen(instancename) : 0) + 8);
 
456
                            if (serv_p->stats_file && instancename) {
457
457
                                snprintf(serv_p->stats_file, vlen + strlen(instancename) + 8,
458
458
                                         "%s/%s.stats", val, instancename);
459
459
                                serv_p->stats_file[(vlen + strlen(instancename) + 7)] = (char)0;