From a3265629451475df75a3cd1fbe1805bbb71b2365 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 15 Oct 2006 20:44:47 +0200 Subject: Fixing early free(). Memory management in the passport code is getting too messy, really... :-( --- protocols/msn/passport.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3 From 5eec897b4d962e643e26574d1bffc22ffcaddac6 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 15 Oct 2006 21:53:42 +0200 Subject: set_eval_int() now allows negative integers. --- set.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3