Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/client/auditclient/auditclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ extern void restore_pathpatch();

unsigned int spindle_la_version(unsigned int version)
{
(void)version;
patchDTV_init();
return 1;
return version;
}

void spindle_la_activity (uintptr_t *cookie, unsigned int flag)
Expand Down
6 changes: 5 additions & 1 deletion src/client/auditclient/auditclient_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ unsigned int la_version(unsigned int version)
debug_printf("la_version function is loaded at %p\n", la_version);
debug_printf3("la_version(): %d\n", version);
init_bindings_hash();
return spindle_la_version(version);

result = spindle_la_version(version);
if (result == -1)
return 0;
return result;
}

char *la_objsearch(const char *name, uintptr_t *cookie, unsigned int flag)
Expand Down
3 changes: 1 addition & 2 deletions src/client/subaudit/subaudit.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA

unsigned int spindle_la_version(unsigned int version)
{
(void)version;
int result;
int binding_offset = 0;

Expand All @@ -39,7 +38,7 @@ unsigned int spindle_la_version(unsigned int version)
debug_printf3("Updating subaudit bindings with offset %d\n", binding_offset);
init_plt_binding_func(binding_offset);

return 1;
return version;
}

static void bind_to_libc()
Expand Down
Loading