]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoPre-check hidden-service-dir permissions/ownership
meejah [Thu, 11 Dec 2014 05:15:04 +0000 (22:15 -0700)] 
Pre-check hidden-service-dir permissions/ownership

See ticket #13942 where Tor dies if you feed it a hidden service
directory with the wrong owner via SETCONF.

10 years agowhen somebody uploads too much, say who tried it
Roger Dingledine [Wed, 10 Dec 2014 06:10:44 +0000 (01:10 -0500)] 
when somebody uploads too much, say who tried it

10 years agoUse END_CIRC_REASON_TORPROTOCOL instead of magic number.
rl1987 [Sun, 7 Dec 2014 13:47:09 +0000 (15:47 +0200)] 
Use END_CIRC_REASON_TORPROTOCOL instead of magic number.

10 years agoAdd fakechans.h to noinst_headers
Nick Mathewson [Thu, 4 Dec 2014 14:19:44 +0000 (09:19 -0500)] 
Add fakechans.h to noinst_headers

10 years agoFix more 64/32 warnings in test_channel.c
Nick Mathewson [Thu, 4 Dec 2014 14:16:49 +0000 (09:16 -0500)] 
Fix more 64/32 warnings in test_channel.c

10 years agoInitialize libevent in circuitmux/destroy_cell_queue test
Nick Mathewson [Thu, 4 Dec 2014 14:11:13 +0000 (09:11 -0500)] 
Initialize libevent in circuitmux/destroy_cell_queue test

10 years agoFix some 32-bit build issues in the tests
Nick Mathewson [Fri, 28 Nov 2014 15:06:10 +0000 (10:06 -0500)] 
Fix some 32-bit build issues in the tests

When comparing 64-bit types, you need to use tt_[ui]64_op().

Found by Jenkins

10 years agoFix a signed/unsigned comparison warning in scheduler_run
Nick Mathewson [Fri, 28 Nov 2014 14:18:17 +0000 (09:18 -0500)] 
Fix a signed/unsigned comparison warning in scheduler_run

10 years agoFix a memory leak in rend_services_introduce
Nick Mathewson [Fri, 28 Nov 2014 04:24:03 +0000 (23:24 -0500)] 
Fix a memory leak in rend_services_introduce

This is CID 1256187 ; bug not in any released tor.

10 years agoFix a likely bug found by coverity in test_scheduler.c.
Nick Mathewson [Fri, 28 Nov 2014 04:21:46 +0000 (23:21 -0500)] 
Fix a likely bug found by coverity in test_scheduler.c.

Andrea, do you agree with this?

This is CID 1256186

10 years agoTweak global_scheduler changes file
Nick Mathewson [Fri, 28 Nov 2014 04:05:21 +0000 (23:05 -0500)] 
Tweak global_scheduler changes file

10 years agoOne more, appease "make check-spaces"
Nick Mathewson [Fri, 28 Nov 2014 03:57:04 +0000 (22:57 -0500)] 
One more, appease "make check-spaces"

10 years agoFix some issues with the scheduler configuration options
Nick Mathewson [Fri, 28 Nov 2014 03:51:13 +0000 (22:51 -0500)] 
Fix some issues with the scheduler configuration options

1) Set them to the values that (according to Rob) avoided performance
   regressions.  This means that the scheduler won't get much exercise
   until we implement KIST or something like it.

2) Rename the options to end with a __, since I think they might be
   going away, and nobody should mess with them.

3) Use the correct types for the option variables. MEMUNIT needs to be a
   uint64_t; UINT needs to be (I know, I know!) an int.

4) Validate the values in options_validate(); do the switch in
   options_act(). This way, setting the option to an invalid value on
   a running Tor will get backed out.

10 years agoFix a 64-bit clang warning
Nick Mathewson [Fri, 28 Nov 2014 03:42:03 +0000 (22:42 -0500)] 
Fix a 64-bit clang warning

10 years agoMerge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'
Nick Mathewson [Fri, 28 Nov 2014 03:39:46 +0000 (22:39 -0500)] 
Merge remote-tracking branch 'andrea/cmux_refactor_configurable_threshold'

Conflicts:
src/or/or.h
src/test/Makefile.nmake

10 years agoMerge remote-tracking branch 'public/bug13126'
Nick Mathewson [Wed, 26 Nov 2014 14:03:30 +0000 (09:03 -0500)] 
Merge remote-tracking branch 'public/bug13126'

Conflicts:
src/or/or.h

10 years agoMerge branch 'feature9503_squashed'
Nick Mathewson [Tue, 25 Nov 2014 17:49:09 +0000 (12:49 -0500)] 
Merge branch 'feature9503_squashed'

10 years agoSending response to SIGNAL HEARTBEAT controller command.
rl1987 [Tue, 4 Nov 2014 17:29:29 +0000 (19:29 +0200)] 
Sending response to SIGNAL HEARTBEAT controller command.

10 years agoAdding 'SIGNAL HEARTBEAT' message that causes unscheduled heartbeat.
rl1987 [Sun, 2 Nov 2014 17:14:58 +0000 (19:14 +0200)] 
Adding 'SIGNAL HEARTBEAT' message that causes unscheduled heartbeat.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 24 Nov 2014 14:19:22 +0000 (09:19 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 24 Nov 2014 14:19:06 +0000 (09:19 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoMerge remote-tracking branch 'karsten/geoip6-nov2014' into maint-0.2.4
Nick Mathewson [Mon, 24 Nov 2014 14:18:36 +0000 (09:18 -0500)] 
Merge remote-tracking branch 'karsten/geoip6-nov2014' into maint-0.2.4

10 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 24 Nov 2014 14:18:21 +0000 (09:18 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

10 years agoUpdate geoip6 to the November 15 2014 database.
Karsten Loesing [Mon, 24 Nov 2014 13:23:18 +0000 (14:23 +0100)] 
Update geoip6 to the November 15 2014 database.

10 years agoUpdate geoip to the November 15 2014 database.
Karsten Loesing [Mon, 24 Nov 2014 13:21:31 +0000 (14:21 +0100)] 
Update geoip to the November 15 2014 database.

10 years agoUse consistent formatting for list of directory authorities
Nick Mathewson [Mon, 24 Nov 2014 06:34:17 +0000 (01:34 -0500)] 
Use consistent formatting for list of directory authorities

Based on a patch from grpamp on tor-dev.

10 years agoMake can_complete_circuits a static variable.
Nick Mathewson [Thu, 20 Nov 2014 17:03:46 +0000 (12:03 -0500)] 
Make can_complete_circuits a static variable.

10 years agoDon't build introduction circuits until we know we can build circuits
Nick Mathewson [Thu, 20 Nov 2014 16:51:36 +0000 (11:51 -0500)] 
Don't build introduction circuits until we know we can build circuits

Patch from akwizgran.  Ticket 13447.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Wed, 19 Nov 2014 22:27:37 +0000 (17:27 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Wed, 19 Nov 2014 22:26:42 +0000 (17:26 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoUpdate longclaw dirauth IP to be a more stable location
Micah Anderson [Wed, 19 Nov 2014 22:22:25 +0000 (17:22 -0500)] 
Update longclaw dirauth IP to be a more stable location

10 years agowhoops; removed the documentation for Support022HiddenServices too
Nick Mathewson [Tue, 18 Nov 2014 02:16:33 +0000 (21:16 -0500)] 
whoops; removed the documentation for Support022HiddenServices too

10 years agoRemove Support022HiddenServices
Nick Mathewson [Mon, 17 Nov 2014 16:52:10 +0000 (11:52 -0500)] 
Remove Support022HiddenServices

This has been already disabled in the directory consensus for a while;
it didn't seem to break anything.

Finally closes #7803.

10 years agoChanges file for 13212.
rl1987 [Sun, 16 Nov 2014 14:12:08 +0000 (16:12 +0200)] 
Changes file for 13212.

10 years agoRewriting comment for control_event_hs_descriptor_failed().
rl1987 [Sun, 16 Nov 2014 14:06:00 +0000 (16:06 +0200)] 
Rewriting comment for control_event_hs_descriptor_failed().

10 years agoAdding REASON field to HS_DESC FAILED controller event.
rl1987 [Sun, 16 Nov 2014 13:51:23 +0000 (15:51 +0200)] 
Adding REASON field to HS_DESC FAILED controller event.

10 years agodocument that hiddenserviceport can have an ipv6 addr.for 12670
Nick Mathewson [Fri, 14 Nov 2014 16:19:34 +0000 (11:19 -0500)] 
document that hiddenserviceport can have an ipv6 addr.for 12670

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Wed, 12 Nov 2014 20:32:15 +0000 (15:32 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Wed, 12 Nov 2014 20:29:39 +0000 (15:29 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

Conflicts:
src/or/config.c

10 years agoAdd changes file for #13926
Sebastian Hahn [Wed, 12 Nov 2014 18:12:18 +0000 (19:12 +0100)] 
Add changes file for #13926

10 years agoRemove turtles as a directory authority (#13296)
Micah Anderson [Sun, 9 Nov 2014 20:49:11 +0000 (15:49 -0500)] 
Remove turtles as a directory authority (#13296)

10 years agoAdd longclaw as a directory authority (#13296)
Micah Anderson [Sun, 9 Nov 2014 20:48:56 +0000 (15:48 -0500)] 
Add longclaw as a directory authority (#13296)

10 years agoMerge remote-tracking branch 'public/bug7484'
Nick Mathewson [Wed, 12 Nov 2014 18:44:57 +0000 (13:44 -0500)] 
Merge remote-tracking branch 'public/bug7484'

Conflicts:
src/test/test_addr.c

10 years agoFix wide lines (from 13172)
Nick Mathewson [Wed, 12 Nov 2014 18:42:01 +0000 (13:42 -0500)] 
Fix wide lines (from 13172)

10 years agoReplace operators used as macro arguments with OP_XX macros
Nick Mathewson [Wed, 12 Nov 2014 18:28:07 +0000 (13:28 -0500)] 
Replace operators used as macro arguments with OP_XX macros

Part of fix for 13172

10 years agoMerge branch 'ticket13172'
Nick Mathewson [Wed, 12 Nov 2014 18:25:17 +0000 (13:25 -0500)] 
Merge branch 'ticket13172'

10 years agoReenhappy make check-spaces
Nick Mathewson [Wed, 12 Nov 2014 18:15:10 +0000 (13:15 -0500)] 
Reenhappy make check-spaces

10 years agoMerge remote-tracking branch 'rl1987/bug13644'
Nick Mathewson [Wed, 12 Nov 2014 18:12:14 +0000 (13:12 -0500)] 
Merge remote-tracking branch 'rl1987/bug13644'

10 years agotweak 9812 changes file
Nick Mathewson [Wed, 12 Nov 2014 15:28:33 +0000 (10:28 -0500)] 
tweak 9812 changes file

10 years agoMerge remote-tracking branch 'rl1987/bug9812'
Nick Mathewson [Wed, 12 Nov 2014 15:27:12 +0000 (10:27 -0500)] 
Merge remote-tracking branch 'rl1987/bug9812'

10 years agoMerge remote-tracking branch 'public/bug13698_024_v1'
Nick Mathewson [Wed, 12 Nov 2014 15:23:55 +0000 (10:23 -0500)] 
Merge remote-tracking branch 'public/bug13698_024_v1'

10 years agoRevise changes file
Nick Mathewson [Wed, 12 Nov 2014 15:23:24 +0000 (10:23 -0500)] 
Revise changes file

10 years agoAdding changes file for 13644.
rl1987 [Tue, 11 Nov 2014 19:01:30 +0000 (21:01 +0200)] 
Adding changes file for 13644.

10 years agoRenaming ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN.
rl1987 [Tue, 11 Nov 2014 18:56:40 +0000 (20:56 +0200)] 
Renaming ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN.

10 years agoComment possible values of was_router_added_t.
rl1987 [Tue, 11 Nov 2014 18:37:39 +0000 (20:37 +0200)] 
Comment possible values of was_router_added_t.

10 years agoFix: don't report timeout when closing parallel intro points
David Goulet [Mon, 10 Nov 2014 19:38:53 +0000 (14:38 -0500)] 
Fix: don't report timeout when closing parallel intro points

When closing parallel introduction points, the given reason (timeout)
was actually changed to "no reason" thus when the circuit purpose was
CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT, we were reporting an introduction
point failure and flagging it "unreachable". After three times, that
intro point gets removed from the rend cache object.

In the case of CIRCUIT_PURPOSE_C_INTRODUCING, the intro point was
flagged has "timed out" and thus not used until the connection to the HS
is closed where that flag gets reset.

This commit adds an internal circuit reason called
END_CIRC_REASON_IP_NOW_REDUNDANT which tells the closing circuit
mechanism to not report any intro point failure.

This has been observed while opening hundreds of connections to an HS on
different circuit for each connection. This fix makes this use case to
work like a charm.

Fixes #13698.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoDocument networkstatus-bridges
Nick Mathewson [Mon, 10 Nov 2014 14:03:11 +0000 (09:03 -0500)] 
Document networkstatus-bridges

Closes 13713; patch from 'tom'

11 years agoAdding changes file for 9812.
rl1987 [Sun, 9 Nov 2014 15:55:35 +0000 (17:55 +0200)] 
Adding changes file for 9812.

11 years agoPrint a warning when extra info document is found incompatible with router descriptor.
rl1987 [Sun, 9 Nov 2014 15:41:18 +0000 (17:41 +0200)] 
Print a warning when extra info document is found incompatible with router descriptor.

11 years agoDowngrade RSA signature verification failure error message to info loglevel.
rl1987 [Sun, 9 Nov 2014 15:39:23 +0000 (17:39 +0200)] 
Downgrade RSA signature verification failure error message to info loglevel.

11 years agoFixing typo in manpage.
rl1987 [Sun, 9 Nov 2014 14:34:34 +0000 (16:34 +0200)] 
Fixing typo in manpage.

11 years agoWrong format in log statement
David Goulet [Fri, 7 Nov 2014 16:40:41 +0000 (11:40 -0500)] 
Wrong format in log statement

Fixes bug 13701.

11 years agotest_checkdir.c: Perhaps this is what will make this test pass on windows?
Nick Mathewson [Fri, 7 Nov 2014 14:28:49 +0000 (09:28 -0500)] 
test_checkdir.c: Perhaps this is what will make this test pass on windows?

11 years agotest_checkdir.c: try to make it pass on windows
Nick Mathewson [Fri, 7 Nov 2014 13:54:03 +0000 (08:54 -0500)] 
test_checkdir.c: try to make it pass on windows

also fix memory-leak on failing tests.

11 years agoDefine macros meaning <,>,==,!=,<=,>=
Nick Mathewson [Thu, 6 Nov 2014 16:19:31 +0000 (11:19 -0500)] 
Define macros meaning <,>,==,!=,<=,>=

This lets us avoid putting operators directly in macro arguments,
and thus will help us unconfuse coccinelle.

For ticket 13172.

11 years agoThrow identify-node-by-nickname down the memory hole
Nick Mathewson [Thu, 6 Nov 2014 16:10:58 +0000 (11:10 -0500)] 
Throw identify-node-by-nickname down the memory hole

Authorities are no longer voting on Named, so specifying nodes by
nickname isn't a clever thing to do.  (Not that it ever was!)  So
remove the documentation that suggests that you should do it.

Additionally, add proper cross-references to our __node__ lists, and
explain about the optional $ before identity digests.

Also, the oxford comma: endorsed by Steven Pinker, my spouse, and my
11th grade English teacher.

Closes 13381.

11 years agoTry to fix test_checkdir windows compilation more
Nick Mathewson [Wed, 5 Nov 2014 19:51:17 +0000 (14:51 -0500)] 
Try to fix test_checkdir windows compilation more

11 years agoTry to fix test_checkdir windows compilation
Nick Mathewson [Wed, 5 Nov 2014 19:39:09 +0000 (14:39 -0500)] 
Try to fix test_checkdir windows compilation

11 years agochgrp the testing tempdir to ourself to clear the sticky bit
Nick Mathewson [Wed, 5 Nov 2014 19:27:05 +0000 (14:27 -0500)] 
chgrp the testing tempdir to ourself to clear the sticky bit

Closes 13678.  Doesn't actually matter for older tors.

11 years ago11291: Fix warnings, add changes file, rename 'mask'.
Nick Mathewson [Wed, 5 Nov 2014 19:09:59 +0000 (14:09 -0500)] 
11291: Fix warnings, add changes file, rename 'mask'.

11 years agoMerge remote-tracking branch 'meejah/ticket-11291-extra-utests'
Nick Mathewson [Wed, 5 Nov 2014 19:11:47 +0000 (14:11 -0500)] 
Merge remote-tracking branch 'meejah/ticket-11291-extra-utests'

Conflicts:
src/or/config.c

11 years agoChanges file for Andrea's work on 6456
Nick Mathewson [Tue, 4 Nov 2014 14:59:25 +0000 (09:59 -0500)] 
Changes file for Andrea's work on 6456

11 years agoFix a wide line I introduced
Nick Mathewson [Tue, 4 Nov 2014 14:56:46 +0000 (09:56 -0500)] 
Fix a wide line I introduced

11 years agoFix unused-argument warnings
Nick Mathewson [Tue, 4 Nov 2014 14:54:51 +0000 (09:54 -0500)] 
Fix unused-argument warnings

11 years agoMerge remote-tracking branch 'andrea/ticket6456'
Nick Mathewson [Tue, 4 Nov 2014 14:49:35 +0000 (09:49 -0500)] 
Merge remote-tracking branch 'andrea/ticket6456'

Somewhat tricky conflicts:
src/or/config.c

Also, s/test_assert/tt_assert in test_config.c

11 years agoUpdate verbiage in README to mention autogen.sh
Nick Mathewson [Tue, 4 Nov 2014 14:01:46 +0000 (09:01 -0500)] 
Update verbiage in README to mention autogen.sh

Closes ticket 13190

11 years agoMerge branch 'bug13315_squashed'
Nick Mathewson [Tue, 4 Nov 2014 05:48:25 +0000 (00:48 -0500)] 
Merge branch 'bug13315_squashed'

Conflicts:
src/or/buffers.c

11 years agofix indentation
Nick Mathewson [Tue, 4 Nov 2014 05:46:32 +0000 (00:46 -0500)] 
fix indentation

11 years agoUse correct argument types for inet_pton.
Nick Mathewson [Tue, 4 Nov 2014 05:45:14 +0000 (00:45 -0500)] 
Use correct argument types for inet_pton.

(I blame whoever decided that using a void* for a union was a good
idea.)

11 years agoSending 'Not allowed' error message before closing the connection.
rl1987 [Tue, 21 Oct 2014 17:50:32 +0000 (20:50 +0300)] 
Sending 'Not allowed' error message before closing the connection.

11 years agoAdding changes file for 13315.
rl1987 [Tue, 14 Oct 2014 19:09:44 +0000 (22:09 +0300)] 
Adding changes file for 13315.

11 years agoChecking if FQDN is actually IPv6 address string and handling that case.
rl1987 [Tue, 14 Oct 2014 18:56:04 +0000 (21:56 +0300)] 
Checking if FQDN is actually IPv6 address string and handling that case.

11 years agoAdding helper function that checks if string is a valid IPv6 address.
rl1987 [Tue, 14 Oct 2014 18:53:48 +0000 (21:53 +0300)] 
Adding helper function that checks if string is a valid IPv6 address.

11 years agoValidating SOCKS5 hostname more correctly.
rl1987 [Sun, 12 Oct 2014 18:04:15 +0000 (21:04 +0300)] 
Validating SOCKS5 hostname more correctly.

11 years agoIntroducing helper function to validate IPv4 address strings.
rl1987 [Sun, 12 Oct 2014 17:39:00 +0000 (20:39 +0300)] 
Introducing helper function to validate IPv4 address strings.

11 years agoIntroducing helper function to validate DNS name strings.
rl1987 [Sun, 12 Oct 2014 16:33:08 +0000 (19:33 +0300)] 
Introducing helper function to validate DNS name strings.

11 years agoMerge remote-tracking branch 'public/bug13214_025_squashed'
Nick Mathewson [Tue, 4 Nov 2014 05:24:56 +0000 (00:24 -0500)] 
Merge remote-tracking branch 'public/bug13214_025_squashed'

11 years agoCheck descriptor ID in addition to HS ID when saving a v2 hs descriptor
Nick Mathewson [Mon, 3 Nov 2014 19:02:47 +0000 (14:02 -0500)] 
Check descriptor ID in addition to HS ID when saving a v2 hs descriptor

Fixes bug 13214; reported by 'special'.

11 years agoAdd comments and rename intro_nodes list in rend_services_introduce()
David Goulet [Tue, 4 Nov 2014 05:19:31 +0000 (00:19 -0500)] 
Add comments and rename intro_nodes list in rend_services_introduce()

(No changes file needed: this patch just adds comments and renames
variables. This is ticket 13646. message taken from the ticket. -Nick)

11 years agoRemove smartlist_choose_node_by_bandwidth()
Nick Mathewson [Mon, 3 Nov 2014 18:30:19 +0000 (13:30 -0500)] 
Remove smartlist_choose_node_by_bandwidth()

We were only using it when smartlist_choose_node_by_bandwidth_weights
failed.  But that function could only fail in the presence of
buggy/ancient authorities or in the absence of a consensus.  Either
way, it's better to use sensible defaults and a nicer algorithm.

11 years agoUse tor_malloc_zero(x), not tor_calloc(x,sizeof(char))
Nick Mathewson [Sun, 2 Nov 2014 17:08:51 +0000 (12:08 -0500)] 
Use tor_malloc_zero(x), not tor_calloc(x,sizeof(char))

(Also, fixes a wide line.)

11 years agoMerge branch 'calloc2'
Nick Mathewson [Sun, 2 Nov 2014 17:03:11 +0000 (12:03 -0500)] 
Merge branch 'calloc2'

11 years agoApply new calloc coccinelle patch
Nick Mathewson [Sun, 2 Nov 2014 16:56:02 +0000 (11:56 -0500)] 
Apply new calloc coccinelle patch

11 years agoUse the | trick to save a comparison in our calloc check.
Nick Mathewson [Sun, 2 Nov 2014 16:48:08 +0000 (11:48 -0500)] 
Use the | trick to save a comparison in our calloc check.

11 years agoSwitch to a < comparison for our calloc check; explain how it works
Nick Mathewson [Sun, 2 Nov 2014 16:42:33 +0000 (11:42 -0500)] 
Switch to a < comparison for our calloc check; explain how it works

11 years agoDocument the calloc function overflow check.
Mansour Moufid [Sun, 19 Oct 2014 17:12:11 +0000 (13:12 -0400)] 
Document the calloc function overflow check.

11 years agoRemove a duplicate comment.
Mansour Moufid [Sun, 19 Oct 2014 16:59:28 +0000 (12:59 -0400)] 
Remove a duplicate comment.

11 years agoAdd a rule to the calloc semantic patch for argument ordering.
Mansour Moufid [Sun, 19 Oct 2014 16:36:46 +0000 (12:36 -0400)] 
Add a rule to the calloc semantic patch for argument ordering.

11 years agoThe second argument to tor_calloc should be a constant.
Mansour Moufid [Sun, 19 Oct 2014 16:20:36 +0000 (12:20 -0400)] 
The second argument to tor_calloc should be a constant.

Just like the conventional calloc.

11 years agoRefactor the calloc semantic patch.
Mansour Moufid [Sun, 19 Oct 2014 16:18:31 +0000 (12:18 -0400)] 
Refactor the calloc semantic patch.

This does not change its effects.