/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugin-runner.c

  • Committer: Teddy Hogeborn
  • Date: 2008-08-18 23:55:28 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080818235528-dn628nlbrtzl7z4f
* Makefile: Bug fix: fixed creation of man pages for section 5 pages.

* mandos (main): Changed from requiring "[server]" in mandos.conf(5)
                 to requiring "[DEFAULT]".

* mandos.conf ([server]): Renamed to "[DEFAULT]".

* mandos.conf.xml: Removed <?xml-stylesheet>.  New entity "&OVERVIEW;"
                   referring to "overview.xml".
  (DESCRIPTION): Updated to specify the syntax more precisely.  Use
                 <varname> around the option names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
  if (new_plugin == NULL){
106
106
    return NULL;
107
107
  }
108
 
  char *copy_name = NULL;
109
 
  if(name != NULL){
110
 
    copy_name = strdup(name);
111
 
  }
 
108
  char *copy_name = strdup(name);
112
109
  if(copy_name == NULL){
113
110
    return NULL;
114
111
  }
121
118
  
122
119
  new_plugin->argv = malloc(sizeof(char *) * 2);
123
120
  if (new_plugin->argv == NULL){
124
 
    free(copy_name);
125
121
    free(new_plugin);
126
122
    return NULL;
127
123
  }
130
126
 
131
127
  new_plugin->environ = malloc(sizeof(char *));
132
128
  if(new_plugin->environ == NULL){
133
 
    free(copy_name);
134
129
    free(new_plugin->argv);
135
130
    free(new_plugin);
136
131
    return NULL;