]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
small fixes in documentation and sandbox_getaddrinfo()
authorCristian Toader <cristian.matei.toader@gmail.com>
Thu, 29 Aug 2013 09:41:17 +0000 (12:41 +0300)
committerCristian Toader <cristian.matei.toader@gmail.com>
Thu, 29 Aug 2013 09:41:17 +0000 (12:41 +0300)
src/common/sandbox.c
src/common/sandbox.h

index 13d4ce927c7add20be58b10e7ab953e815d7337e..39f6932e2a810b261fba3d0d8e7cc99020235dc6 100644 (file)
@@ -892,7 +892,7 @@ sandbox_getaddrinfo(const char *name, struct addrinfo **res)
   }
   *res = NULL;
   *res = (struct addrinfo *)malloc(sizeof(struct addrinfo));
-  if (!res) {
+  if (*res == NULL) {
     return -2;
   }
 
index d7e1172864cd3c749bf810f326c9794416b88f4b..605df7f34a075a200040b9d8b0ad666779e7cf5b 100644 (file)
@@ -68,10 +68,10 @@ typedef int (*sandbox_filter_func_t)(scmp_filter_ctx ctx,
 
 /** Type that will be used in step 3 in order to manage multiple sandboxes.*/
 typedef struct {
-  // function pointers associated with the filter
+  /** function pointers associated with the filter */
   sandbox_filter_func_t *filter_func;
 
-  // filter function pointer parameters
+  /** filter function pointer parameters */
   sandbox_cfg_t *filter_dynamic;
 } sandbox_t;