print the rpc access list error message to Console

This commit is contained in:
Mitchell Livingston 2008-06-04 16:24:49 +00:00
parent 3a3397ca84
commit a3324fbeea
1 changed files with 7 additions and 2 deletions

View File

@ -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