diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index 4116f223e..532c3917b 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -671,8 +671,13 @@ NSString * string = [components componentsJoinedByString: @","]; - #warning check for an error! - tr_sessionSetRPCACL(fHandle, [string UTF8String], NULL); + char ** error = (char **)tr_malloc(sizeof(char **)); + if (tr_sessionSetRPCACL(fHandle, [string UTF8String], error)) + { + NSLog([NSString stringWithUTF8String: *error]); + tr_free(*error); + } + tr_free(error); } - (void) addRemoveRPCIP: (id) sender