]> arthur.barton.de Git - ngircd-alex.git/commit
Merge branch 'move-connection-password' of git://arthur.barton.de/ngircd-alex
authorAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 17:14:29 +0000 (19:14 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 17:14:29 +0000 (19:14 +0200)
commitbcefdef1eaed14d3156b7fb5b9ad6d3b7078efcf
tree34fb113f4979f5a52bc9fe6956adc6768da891d3
parent360a254be0e55e975998d0f3a5ff301ac3346f72
parentf79d41e92741fa2f6bc6fef957d278707ad4236a
Merge branch 'move-connection-password' of git://arthur.barton.de/ngircd-alex

This patch series converts the statically allocated password buffer in the
CLIENT structure into a dynamically (and only when needed) allocated buffer
which is referenced by the CONNECTION structure.

This a) saves memory for clients not using passwords at all and b) allows
for "arbitrarily" long passwords.

By Brett Smith (5) and Alexander Barton (2).

* 'move-connection-password' of git://arthur.barton.de/ngircd-alex:
  Login_User(): use "conn" insted of calling Client_Conn(Client)
  Free already saved password when storing a new one
  Indentation and style fixes.
  Connection password is not constant.
  Implementation clean-ups.
  Dynamically allocate memory for connection password.
  Move client password from the Client to the Connection struct.
src/ngircd/client.c
src/ngircd/conn.c