Call of hexprint never fail
@@ -597,11 +597,9 @@ static PHP_METHOD(Swow_WebSocket_Frame, __debugInfo)
}
if (header->mask) {
char *mask_key = cat_hexprint(header->mask_key, CAT_WEBSOCKET_MASK_KEY_LENGTH);
- if (mask_key != NULL) {
add_assoc_string(&zdebug_info, "mask_key", mask_key);
cat_free(mask_key);
}
- }
if (sframe->payload_data != NULL) {
GC_ADDREF(sframe->payload_data);
add_assoc_object(&zdebug_info, "payload_data", sframe->payload_data);
