Commit Graph

3905 Commits

Author SHA1 Message Date
Alexey Sokolov 63a2fbc634 Don't reset module's attributes to NULL during CALLMOD.
It conflicted with nested calls to a module. Such calls usually don't
happen, but could be triggered using alias module.

In this case m_pClient became NULL while executing the alias, and the
rest of that alias caused segfault.

Fix #1347
2016-12-01 23:31:56 +00:00
Alexey Sokolov 0aa3f7e362 route_replies: fix module to check if we are not connected to a network.
Cherry-pick of 34db7be4ae
znc-1.6.4-rc2
2016-11-22 23:53:39 +00:00
Alexey Sokolov d596226ddc ZNC 1.6.4-rc1 znc-1.6.4-rc1 2016-11-20 23:51:03 +00:00
Alexey Sokolov 6366430870 Fix deletion of users which are connecting.
Close #1342
2016-11-20 17:56:26 +00:00
Alexey Sokolov a76a9db369 Merge branch '1.6.x' of github.com:znc/znc into 1.6.x 2016-11-19 23:41:15 +00:00
Alexey Sokolov 0ac3cfc8d5 Fix regression of 1.6.0
Cloning a user caused a non-immediate segfault.
This was fixed already in 1.7 branch (by refactoring).
Fix #1340
2016-11-19 23:35:12 +00:00
Alexey Sokolov 676d105347 Workaround gitter for 1.6
It's fixed properly for 1.7 already.
Fix #1321
2016-11-17 23:45:25 +00:00
Will Elwood 4c7fa1aabf Fix version.sh for ancient git
I'm not sure when the `format` argument was added to `git log`, but it seems to be an alias for `pretty` (ie both exist in current versions of git). I noticed this was failing on my ancient system that's stuck with git 1.5, this makes it work.

Also, `ignore-submodules` is not understood by ancient `git status` - I believe the expected output would be achieved by simply removing this argument, but it's not important since it fails gracefully enough and fixing it so newer git doesn't fail seems more complicated.
2016-11-16 15:49:47 +00:00
Alexey Sokolov 0aaabe8c9f Update Csocket submodule: fix build with openssl 1.1 2016-11-16 14:42:34 +00:00
Alexey Sokolov b7dcac5e5f Merge pull request #1311 from welwood08/openssl-1.1
OpenSSL 1.1 compatibility
2016-09-13 20:41:48 +01:00
William Elwood 853dcc211d Fix use of a feature deprecated in OpenSSL 1.1
If OpenSSL 1.1 is configured in such a way that features deprecated in 1.1.0 are not built, then compile errors would result here.
2016-09-13 11:51:13 +01:00
William Elwood 6a5c2c649d Fix use of a feature deprecated in OpenSSL 0.9.8
If OpenSSL 1.1 is configured in such a way that features deprecated in 0.9.8 are not built, then compile errors would result here.
I also noticed a potential memory leak where pRSA was not always freed before early return from this function - fixed by using C++11 unique_ptr.
2016-09-13 11:50:40 +01:00
William Elwood 03775fcdc5 Fix compile errors caused by OpenSSL 1.1 2016-09-12 23:39:19 +01:00
Alexey Sokolov debfdf6c02 Fix build on OS X after fixing build on Cygwin 2016-09-09 00:17:20 +01:00
Alexey Sokolov 9974b6692b Fix TSAN on Travis 2016-09-08 22:19:25 +01:00
Alexey Sokolov a964b2bbef Merge branch '1.6.x' of github.com:znc/znc into 1.6.x 2016-09-08 22:14:47 +01:00
Alexey Sokolov 14cef81bb5 Merge pull request #1312 from welwood08/gtest
Fix `make test` in 1.6.x
2016-09-04 22:02:43 +01:00
William Elwood f7d0f0ccb0 Fix make test in 1.6.x since GoogleTest has moved to new hosting 2016-09-04 12:08:29 +01:00
Alexey Sokolov aff7e25043 Fix cygwin build
(cherry picked from commit f1ef8c79db)
2016-08-13 09:55:00 +01:00
Alexey Sokolov dd58e369f8 Fix OnInvite in modpython and modperl.
They were silently not called.

Close #1283
2016-07-31 10:35:19 +01:00
Alexey Sokolov bb20971fff Switch ZNC-Linker channel notification of Travis to MetaNova's server 2016-04-01 22:15:50 +01:00
Alexey Sokolov 0ff90ea451 Fix error in *controlpanel when setting bindhost of another user.
Thanks to Kult for reporting this.
2016-03-04 22:24:46 +00:00
Alexey Sokolov e5ff36eb8e Revert version to 1.6.x after release of 1.6.3 2016-02-23 21:37:38 +00:00
Alexey Sokolov 90d03a48e5 ZNC 1.6.3 znc-1.6.3 2016-02-23 21:23:42 +00:00
Alexey Sokolov 6fe9dfc25e ZNC 1.6.3-rc2 znc-1.6.3-rc2 2016-02-18 22:21:35 +00:00
Alexey Sokolov 71cdb81fe8 Don't save ZNC version to config as part of quit message.
Introduce one more string for ExpandString.

Fix #1244
2016-02-18 22:18:08 +00:00
Alexey Sokolov b49a92b1e6 ZNC 1.6.3-rc1 znc-1.6.3-rc1 2016-02-08 21:18:12 +00:00
Alexey Sokolov 17dcf6ebb2 Update Csocket submodule: Fix for LibreSSL 2016-02-08 00:36:39 +00:00
Alexey Sokolov 13ce4e3a1e webadmin: Don't autocomplete password in user settings even in Firefox
Fix #1163
2016-02-04 23:39:49 +00:00
Alexey Sokolov 65521d9e43 webadmin: Fix error message on invalid user.
Calling PrintErrorPage twice doesn't work very well.

See #1163
2016-02-04 23:18:49 +00:00
Alexey Sokolov e7dd61c55c Fix Csocket after previous commit... 2016-01-27 08:11:06 +00:00
Alexey Sokolov 26b959dbf5 Fix znc-buildmod on cygwin in 1.6.x versions.
Cygwin's gcc requires -lznc to be after .o which needs symbols from -lznc

It's already fixed in 1.7.x in a better way, but that way requires more
changes...
2016-01-27 00:00:22 +00:00
Alexey Sokolov 66daadfee8 sasl: add option to show which mechanisms failed and succeeded
Fix #770
2016-01-17 12:04:53 +00:00
Alexey Sokolov 5d014193b4 Don't require reconnect after changing encoding. 2016-01-09 18:18:44 +00:00
dgw ed5eca4f74 [buildmod] non-zero exit code when file not found
Fixes #1226
Close #1227
2016-01-07 20:58:09 +00:00
Alexey Sokolov c21e60ad7a Fix memory leak in modperl.
The reason is the same as it was for modpython in #1017
2016-01-07 01:14:21 +00:00
Alexey Sokolov 901ead89d5 Fix 404 when accessing web UI with the prefix, but without ending /
Thanks, txtsd
2015-12-30 16:13:19 +00:00
Alexey Sokolov 840acbfb5d Merge branch '1.6.x' of github.com:znc/znc into 1.6.x 2015-11-15 18:00:48 +00:00
Alexey Sokolov e2d313d3ba Revert version changes after releasing 1.6.2 to 1.6.x 2015-11-15 17:59:43 +00:00
Alexey Sokolov 55b5c24255 Increase the version number to 1.6.2 znc-1.6.2 2015-11-15 17:36:31 +00:00
Alexey Sokolov f909cf1ce0 Merge pull request #1178 from Mikaela/travis
.travis.yml: encrypt IRC notification settings
2015-11-06 11:27:07 +00:00
Mikaela Suomalainen 429e0451e4 .travis.yml: encrypt IRC notification settings
Thanks @petemoore at #795
2015-11-06 13:16:59 +02:00
Alexey Sokolov 92ce58d25f ZNC 1.6.2-rc1 znc-1.6.2-rc1 2015-11-02 21:10:51 +00:00
Alexey Sokolov 4048483da0 Update Csocket: fix build without sslv3 (#1146) 2015-11-02 00:36:08 +00:00
Alexey Sokolov fa4c01e49d Add missing return statement to dcc module.
It was harmless, but it makes Coverity happier.
2015-10-31 02:30:04 +00:00
Alexey Sokolov 096dc5b320 Fix some unitialized fields in modules.
They are not used before OnLoad anyway, but Coverity will be happier.
2015-10-30 14:52:51 +00:00
Alexey Sokolov c8edabb035 Fix memory leak when reading invalid znc.conf
Found by https://scan.coverity.com/
2015-10-30 14:36:01 +00:00
Alexey Sokolov f6aa35c6fb Really fix #528
The previous fix (5e6e3be3) left a possibility to use-after-delete,
though it has been much harder to accidentally trigger.

If AddChan(pChan) fails, it deletes pChan, so the new crash was
happening during showing of error message.

Test for this is at master branch: 9777a1a667

Thanks to https://scan.coverity.com/ for pointing at this.
2015-10-30 01:16:29 +00:00
Alexey Sokolov 0022fc6162 Merge pull request #1153 from Mikaela/travis-trusty
.travis.yml: use Ubuntu Trusty & #znc-dev
2015-10-16 20:28:42 +01:00
Mikaela Suomalainen 10d92e539b .travis.yml: use Ubuntu Trusty & #znc-dev
http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/ and
we have been talking forever about moving notifications to #znc-dev and
there have been multiple PRs for that.

-y is apparently needed with trusty or apt hangs forever waiting for
yes/no.
2015-10-16 10:02:59 +03:00