about summary refs log tree commit diff stats
path: root/tests/unittests/test_plugins_disco.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-04-08 17:12:16 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-04-11 16:05:14 +0200
commite878b6d266fba2ce8dfabedcbb83163d7ec75178 (patch)
tree7ea1a63e0ad38461dfc2c6a1611fc680bcf7ee11 /tests/unittests/test_plugins_disco.c
parentfe9b520c42ad404dee6137fc5c0937a6bd30bbc4 (diff)
downloadprofani-tty-e878b6d266fba2ce8dfabedcbb83163d7ec75178.tar.gz
Don't crash if we get a message without from or type
MAM messages don't have a type nor a from.
If we detect a message without type let's log it and exit without
continuing to try to parse it.

Otherwise we go into _handle_chat() and crash on the no from.
Diffstat (limited to 'tests/unittests/test_plugins_disco.c')
0 files changed, 0 insertions, 0 deletions
6 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218