aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/msn/passport.c1
-rw-r--r--set.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/protocols/msn/passport.c b/protocols/msn/passport.c
index 42b6ea73..9fe6a174 100644
--- a/protocols/msn/passport.c
+++ b/protocols/msn/passport.c
@@ -211,6 +211,7 @@ static void passport_retrieve_dalogin_ready( struct http_request *req )
if( passport_get_id_real( rep->func, rep->data, rep->header ) )
{
+ rep->header = NULL;
destroy_reply( rep );
return;
}
diff --git a/set.c b/set.c
index 6a45fd14..d172a79f 100644
--- a/set.c
+++ b/set.c
@@ -174,6 +174,10 @@ char *set_eval_int( set_t *set, char *value )
{
char *s;
+ /* Allow a minus at the first position. */
+ if( *s == '-' )
+ s ++;
+
for( s = value; *s; s ++ )
if( !isdigit( *s ) )
return NULL;