Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Mar 13, 2024
1 parent af9ef55 commit 2482c80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libfreshclam/libfreshclam.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ fc_error_t fc_download_url_database(
logg(LOGG_INFO, " c. If you have checked (a) and (b), please open a ticket at\n");
logg(LOGG_INFO, " https://github.com/Cisco-Talos/clamav/issues\n");
logg(LOGG_INFO, " and we will investigate why your network is blocked.\n");
if (0 != g_lastRay[0]) {
if (0 != g_lastRay[0]) {
size_t i;
logg(LOGG_INFO, " Please provide the following cf-ray id with your ticket.\n");
logg(LOGG_INFO, "\n CF-RAY=========================================================================\n");
Expand Down
4 changes: 2 additions & 2 deletions libfreshclam/libfreshclam_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ uint32_t g_bCompressLocalDatabase = 0;

freshclam_dat_v1_t *g_freshclamDat = NULL;

uint8_t g_lastRay[CFRAY_LEN+1] = {0};
uint8_t g_lastRay[CFRAY_LEN + 1] = {0};

/** @brief Generate a Version 4 UUID according to RFC-4122
*
Expand Down Expand Up @@ -825,7 +825,7 @@ size_t HeaderCallback(char *buffer,
size_t totBytes = size * nitems;
if (totBytes >= strlen(needle) + CFRAY_LEN) {
if (0 == strncmp(needle, buffer, strlen(needle))) {
uint8_t ** last = (uint8_t**) userdata;
uint8_t **last = (uint8_t **)userdata;
memcpy(last, &(buffer[strlen(needle)]), CFRAY_LEN);
last[CFRAY_LEN] = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion libfreshclam/libfreshclam_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extern uint32_t g_requestTimeout;
extern uint32_t g_bCompressLocalDatabase;

extern freshclam_dat_v1_t *g_freshclamDat;
extern uint8_t g_lastRay[CFRAY_LEN+1];
extern uint8_t g_lastRay[CFRAY_LEN + 1];

fc_error_t load_freshclam_dat(void);
fc_error_t save_freshclam_dat(void);
Expand Down

0 comments on commit 2482c80

Please sign in to comment.