lib: Make callers of base64_encode_data_blob check for success
[bbaumbach/samba-autobuild/.git] / source4 / utils / ntlm_auth.c
index 08160247745cb4d6417d46c4fa97d063b3f890eb..6d0e259259dfbc921b28acecb49cbf580ced7e69 100644 (file)
@@ -621,6 +621,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
                        return;
                } else {
                        base64_key = base64_encode_data_blob(state, session_key);
+                       SMB_ASSERT(base64_key != NULL);
                        mux_printf(mux_id, "GK %s\n", base64_key);
                        talloc_free(base64_key);
                }
@@ -648,6 +649,7 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
 
        if (out.length) {
                out_base64 = base64_encode_data_blob(mem_ctx, out);
+               SMB_ASSERT(out_base64 != NULL);
        } else {
                out_base64 = NULL;
        }