projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add comments explaining why we set banstr to NULL in two places.
[ircu2.10.12-pk.git]
/
ircd
/
channel.c
diff --git
a/ircd/channel.c
b/ircd/channel.c
index 534e3174683bfff7eb72c994611e3a45b9de5f4a..249bba143025cc3bc169354f29a7eb62f55a96fa 100644
(file)
--- a/
ircd/channel.c
+++ b/
ircd/channel.c
@@
-2964,7
+2964,8
@@
mode_process_bans(struct ParseState *state)
count--;
len -= banlen;
- ban->banstr = NULL; /* do not free this string */
+ ban->banstr = NULL; /* modebuf_mode_string() gave ownership of
+ * the ban string to state->mbuf */
free_ban(ban);
changed++;