diff options
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/stream.c b/src/stream.c index 6bb316e..e8a1e8c 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2007 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2007 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ @@ -303,9 +303,10 @@ tagHook (struct stream_data *data, char *name, char **atts, int type) } if (NULL == iks_parent (x)) { data->current = NULL; - if (iks_strcmp (name, "challenge") == 0) + if (iks_strcmp (name, "challenge") == 0) { iks_sasl_challenge(data, x); - else if (iks_strcmp (name, "stream:error") == 0) { + iks_delete (x); + } else if (iks_strcmp (name, "stream:error") == 0) { err = data->streamHook (data->user_data, IKS_NODE_ERROR, x); if (err != IKS_OK) return err; } else { |