diff options
Diffstat (limited to 'lib/ss/invocation.c')
| -rw-r--r-- | lib/ss/invocation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ss/invocation.c b/lib/ss/invocation.c index a7110500..08b66f28 100644 --- a/lib/ss/invocation.c +++ b/lib/ss/invocation.c @@ -20,6 +20,7 @@ #ifdef HAVE_DLOPEN #include <dlfcn.h> #endif +#include <errno.h> int ss_create_invocation(subsystem_name, version_string, info_ptr, request_table_ptr, code_ptr) @@ -46,6 +47,10 @@ int ss_create_invocation(subsystem_name, version_string, info_ptr, ; table = (ss_data **) realloc((char *)table, ((unsigned)sci_idx+2)*size); + if (table == NULL) { + *code_ptr = errno; + return 0; + } table[sci_idx+1] = (ss_data *) NULL; table[sci_idx] = new_table; |
