diff options
Diffstat (limited to 'libnm-core/nm-setting-8021x.c')
-rw-r--r-- | libnm-core/nm-setting-8021x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libnm-core/nm-setting-8021x.c b/libnm-core/nm-setting-8021x.c index 369359f47a..f739f2c720 100644 --- a/libnm-core/nm-setting-8021x.c +++ b/libnm-core/nm-setting-8021x.c @@ -1680,8 +1680,9 @@ file_to_secure_bytes (const char *filename) g_byte_array_append (array, (guint8 *) contents, length); g_assert (array->len == length); g_free (contents); + return g_bytes_new_with_free_func (array->data, array->len, free_secure_bytes, array); } - return g_bytes_new_with_free_func (array->data, array->len, free_secure_bytes, array); + return NULL; } /** |