diff options
Diffstat (limited to 'libglusterfs/src/transport.c')
-rw-r--r-- | libglusterfs/src/transport.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libglusterfs/src/transport.c b/libglusterfs/src/transport.c index 244aa960b78..7464ffd664f 100644 --- a/libglusterfs/src/transport.c +++ b/libglusterfs/src/transport.c @@ -136,7 +136,11 @@ transport_load (dict_t *options, goto fail; } - asprintf (&name, "%s/%s.so", TRANSPORTDIR, type); + ret = asprintf (&name, "%s/%s.so", TRANSPORTDIR, type); + if (-1 == ret) { + gf_log ("transport", GF_LOG_ERROR, "asprintf failed"); + goto fail; + } gf_log ("transport", GF_LOG_DEBUG, "attempt to load file %s", name); |