diff options
Diffstat (limited to 'source3/client/smbumount.c')
-rw-r--r-- | source3/client/smbumount.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/client/smbumount.c b/source3/client/smbumount.c index dacf4ab67d..983ad44fa0 100644 --- a/source3/client/smbumount.c +++ b/source3/client/smbumount.c @@ -74,6 +74,11 @@ canonicalize (char *path) { char *canonical = malloc (PATH_MAX + 1); + if (!canonical) { + fprintf(stderr, "Error! Not enough memory!\n"); + return NULL; + } + if (strlen(path) > PATH_MAX) { fprintf(stderr, "Mount point string too long\n"); return NULL; |